diff --git a/libavformat/mmst.c b/libavformat/mmst.c index c851187daf..653b403bc4 100644 --- a/libavformat/mmst.c +++ b/libavformat/mmst.c @@ -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; }