]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/smem.c
No need to test for NULL before a free.
[vlc] / modules / stream_out / smem.c
index 236639d67369d246bf759f11aed26170d7c3d061..9c8b4cc1e7923f4b4bc9755fb90a1ed131a73585 100644 (file)
@@ -317,8 +317,7 @@ static sout_stream_id_t *AddAudio( sout_stream_t *p_stream, es_format_t *p_fmt )
 static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
 {
     VLC_UNUSED( p_stream );
-    if ( id != NULL )
-        free( id );
+    free( id );
     return VLC_SUCCESS;
 }