Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f6569123
Commit
f6569123
authored
Dec 13, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ML: fix potential memleaks.
parent
e0f5d173
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/media_library/sql_media_library.c
modules/media_library/sql_media_library.c
+7
-2
No files found.
modules/media_library/sql_media_library.c
View file @
f6569123
...
...
@@ -471,7 +471,10 @@ int SQLToMediaArray( media_library_t *p_ml, vlc_array_t *p_result_array,
/* Analyze first row */
int
*
indexes
=
(
int
*
)
calloc
(
i_cols
+
1
,
sizeof
(
int
)
);
if
(
!
indexes
)
{
vlc_array_destroy
(
p_intermediate_array
);
return
VLC_ENOMEM
;
}
const
int
count
=
sizeof
(
ml_table_map
)
/
sizeof
(
struct
ml_table_elt
);
for
(
int
col
=
0
;
col
<
i_cols
;
col
++
)
...
...
@@ -508,14 +511,16 @@ int SQLToMediaArray( media_library_t *p_ml, vlc_array_t *p_result_array,
if
(
!
p_media
)
{
free
(
indexes
);
return
VLC_ENOMEM
;
i_ret
=
VLC_ENOMEM
;
goto
quit_sqlmediaarray
;
}
p_result
=
(
ml_result_t
*
)
calloc
(
1
,
sizeof
(
ml_result_t
)
);
if
(
!
p_result
)
{
ml_gc_decref
(
p_media
);
free
(
indexes
);
return
VLC_ENOMEM
;
i_ret
=
VLC_ENOMEM
;
goto
quit_sqlmediaarray
;
}
char
*
psz_append_pname
=
NULL
;
...
...
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