Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
571c3e12
Commit
571c3e12
authored
Mar 25, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python bindings : fix pyoptions_to_args and a memleak in the same time
parent
1bab8298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
bindings/python/vlc_instance.c
bindings/python/vlc_instance.c
+3
-4
No files found.
bindings/python/vlc_instance.c
View file @
571c3e12
...
...
@@ -28,9 +28,6 @@ pyoptions_to_args(PyObject *py_options, char*** pppsz_args)
{
Py_ssize_t
i_size
;
Py_ssize_t
i_index
;
char
**
ppsz_args
=
*
pppsz_args
;
ppsz_args
=
NULL
;
Py_INCREF
(
py_options
);
if
(
!
PySequence_Check
(
py_options
)
)
...
...
@@ -39,7 +36,9 @@ pyoptions_to_args(PyObject *py_options, char*** pppsz_args)
return
-
1
;
}
i_size
=
PySequence_Size
(
py_options
);
ppsz_args
=
malloc
(
(
i_size
+
1
)
*
sizeof
(
char
*
)
);
char
**
ppsz_args
=
*
pppsz_args
=
malloc
(
(
i_size
+
1
)
*
sizeof
(
char
*
)
);
if
(
!
ppsz_args
)
{
PyErr_SetString
(
PyExc_MemoryError
,
"Out of memory"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment