]> git.sesse.net Git - vlc/blobdiff - modules/access/mms/mmstu.c
Useless test before a free()
[vlc] / modules / access / mms / mmstu.c
index 5f5534e09f317532e3d202b0f1ae04226248fa19..3779a065ea1bded6310a28c7e11ee79b523a7b36 100644 (file)
@@ -1099,10 +1099,7 @@ static int  mms_ParseCommand( access_t *p_access,
     int         i_length;
     uint32_t    i_id;
 
-    if( p_sys->p_cmd )
-    {
-        free( p_sys->p_cmd );
-    }
+    free( p_sys->p_cmd );
     p_sys->i_cmd = i_data;
     p_sys->p_cmd = malloc( i_data );
     memcpy( p_sys->p_cmd, p_data, i_data );