[vlc-devel] commit: playlist: if(X)free(X) -> free(X) (Pierre d'Herbemont )

git version control git at videolan.org
Tue Apr 1 22:55:14 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Apr  1 22:55:16 2008 +0200| [9de3b003216bf70d3617968b5175672bbf819213]

playlist: if(X)free(X) -> free(X)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9de3b003216bf70d3617968b5175672bbf819213
---

 src/playlist/loadsave.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/playlist/loadsave.c b/src/playlist/loadsave.c
index cd27f1c..4fe2807 100644
--- a/src/playlist/loadsave.c
+++ b/src/playlist/loadsave.c
@@ -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 );




More information about the vlc-devel mailing list