[vlc-devel] commit: Fix potential segfault (CID 252) ( Rémi Duraffort )
git version control
git at videolan.org
Fri Oct 10 22:50:29 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Oct 10 22:49:36 2008 +0200| [2c068533149364d88dd3c48d450b243115b246dd] | committer: Rémi Duraffort
Fix potential segfault (CID 252)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c068533149364d88dd3c48d450b243115b246dd
---
src/modules/modules.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/modules/modules.c b/src/modules/modules.c
index d6540cd..4a2ada2 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -737,8 +737,10 @@ char ** module_GetModulesNamesForCapability( const char *psz_capability,
{
free( psz_ret );
if( pppsz_longname )
+ {
free( *pppsz_longname );
- *pppsz_longname = NULL;
+ *pppsz_longname = NULL;
+ }
module_list_free (list);
return NULL;
}
More information about the vlc-devel
mailing list