]> git.sesse.net Git - vlc/commitdiff
Fix potential segfault (CID 252)
authorRémi Duraffort <ivoire@videolan.org>
Fri, 10 Oct 2008 20:49:36 +0000 (22:49 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 10 Oct 2008 20:49:36 +0000 (22:49 +0200)
src/modules/modules.c

index d6540cd0d19a6573b2f47824a9ea5edf34c93786..4a2ada29640db66d410852310f3b9a3d1f63a5f6 100644 (file)
@@ -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;
     }