git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
415696a
)
Fix NULL dereference (CID#149)
author
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sun, 5 Oct 2008 14:10:28 +0000
(17:10 +0300)
committer
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sun, 5 Oct 2008 14:10:28 +0000
(17:10 +0300)
This bug can never happen, as we never call with pppsz_longname == NULL
at the moment.
src/modules/modules.c
patch
|
blob
|
history
diff --git
a/src/modules/modules.c
b/src/modules/modules.c
index
f6d7fc3
..
2d0cb7b
100644
(file)
--- a/
src/modules/modules.c
+++ b/
src/modules/modules.c
@@
-736,7
+736,8
@@
char ** module_GetModulesNamesForCapability( const char *psz_capability,
if( !psz_ret || ( pppsz_longname && *pppsz_longname == NULL ) )
{
free( psz_ret );
- free( *pppsz_longname );
+ if( pppsz_longname )
+ free( *pppsz_longname );
*pppsz_longname = NULL;
module_list_free (list);
return NULL;