]> git.sesse.net Git - vlc/commitdiff
* mp4: fix memleak in mov ref. files handling
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 27 Nov 2006 21:30:13 +0000 (21:30 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 27 Nov 2006 21:30:13 +0000 (21:30 +0000)
modules/demux/mp4/mp4.c

index 0d840063866487fee68e214939a387c23a875c7d..fbdac062e8d93a70fc94c3f7bc6049f1c0b24e80 100644 (file)
@@ -405,6 +405,7 @@ static int Open( vlc_object_t * p_this )
                         asprintf( &psz_absolute, "%s://%s%s",
                                       p_demux->psz_access, psz_path, psz_ref );
 
+                        if( psz_ref ) free( psz_ref );
                         psz_ref = psz_absolute;
                         free( psz_path );
                     }