avformat/mmst: Use av_freep() avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 20 Dec 2014 15:54:25 +0000 (16:54 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 20 Dec 2014 15:54:25 +0000 (16:54 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mmst.c

index c851187..653b403 100644 (file)
@@ -477,8 +477,8 @@ static int mms_close(URLContext *h)
     }
 
     /* free all separately allocated pointers in mms */
-    av_free(mms->streams);
-    av_free(mms->asf_header);
+    av_freep(&mms->streams);
+    av_freep(&mms->asf_header);
 
     return 0;
 }