]> git.sesse.net Git - vlc/commitdiff
fixed memleak pointed out by xtophe in previous commit
authorDamien Fouilleul <damienf@videolan.org>
Thu, 26 Apr 2007 16:03:55 +0000 (16:03 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Thu, 26 Apr 2007 16:03:55 +0000 (16:03 +0000)
src/libvlc-common.c

index 00670a15a485a84cb63cdd69fe8ab44a1137cbf8..8866a453d650b764151397c1e57bc0c9b83a8bf9 100644 (file)
@@ -915,7 +915,10 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
             char *psz_morecodecs;
             asprintf(&psz_morecodecs, "%s,dmo,quicktime", psz_codecs);
             if( psz_morecodecs )
+            {
                 config_PutPsz( p_libvlc, "codec", psz_morecodecs);
+                free(psz_morecodecs);
+            }
         }
         else
             config_PutPsz( p_libvlc, "codec", "dmo,quicktime");