[FFmpeg-cvslog] avformat/mmst: Use av_freep() avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Sat Dec 20 17:04:46 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 20 16:54:25 2014 +0100| [8db0c2ffe60d652d4f2942429281a34bc96bbb59] | committer: Michael Niedermayer
avformat/mmst: Use av_freep() avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8db0c2ffe60d652d4f2942429281a34bc96bbb59
---
libavformat/mmst.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/mmst.c b/libavformat/mmst.c
index c851187..653b403 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;
}
More information about the ffmpeg-cvslog
mailing list