playlist: if(X)free(X) -> free(X)
[vlc.git] / src / playlist / loadsave.c
index cd27f1c..4fe2807 100644 (file)
@@ -83,8 +83,7 @@ int playlist_Export( playlist_t * p_playlist, const char *psz_filename ,
 
     /* Clean up */
     fclose( p_export->p_file );
-    if ( p_export->psz_filename )
-        free( p_export->psz_filename );
+    free( p_export->psz_filename );
     free ( p_export );
     p_playlist->p_private = NULL;
     vlc_mutex_unlock( &p_playlist->object_lock );