]> git.sesse.net Git - vlc/commitdiff
Fix memleaks.
authorRémi Duraffort <ivoire@videolan.org>
Thu, 31 Jul 2008 11:29:06 +0000 (13:29 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 31 Jul 2008 11:32:36 +0000 (13:32 +0200)
modules/misc/logger.c
modules/misc/playlist/xspf.c

index 7e92e97c2e002701911b3fc2727f509e024bd274..4229fa22d8281b9863a2ba36e4f8d3b944369a93 100644 (file)
@@ -268,6 +268,7 @@ static int Open( vlc_object_t *p_this )
     {
         p_intf->p_sys->p_rrd = utf8_fopen( psz_rrd_file, "w" );
     }
+    free( psz_rrd_file );
 
     p_intf->p_sys->p_sub = msg_Subscribe( p_intf );
     p_intf->pf_run = Run;
index 1552abb8f4a5ce8834e0642e1676379a1d0aba1f..e1178b2f94bc90cdf9332e4e63132a5b6a2a2548 100644 (file)
@@ -77,8 +77,8 @@ int xspf_export_playlist( vlc_object_t *p_this )
     if( psz_temp && *psz_temp )
     {
         fprintf( p_export->p_file, "\t<location>%s</location>\n", psz_temp );
-        free( psz_temp );
     }
+    free( psz_temp );
 
     /* export all items in a flat format */
     fprintf( p_export->p_file, "\t<trackList>\n" );