From 8db0c2ffe60d652d4f2942429281a34bc96bbb59 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 20 Dec 2014 16:54:25 +0100 Subject: [PATCH] avformat/mmst: Use av_freep() avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavformat/mmst.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }