ffmpeg | branch: master | Michael Niedermayer <michae...@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 <michae...@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;
 }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to