]> git.sesse.net Git - vlc/blobdiff - modules/misc/playlist/xspf.c
Fix memleaks.
[vlc] / modules / misc / playlist / xspf.c
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" );