ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Thu Feb 19 
22:15:22 2015 +0100| [be0cb7e053850b68aa21f4ebfe239f149e60cb5b] | committer: 
Michael Niedermayer

avformat/dss: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=be0cb7e053850b68aa21f4ebfe239f149e60cb5b
---

 libavformat/dss.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dss.c b/libavformat/dss.c
index a353ee0..5ee69a1 100644
--- a/libavformat/dss.c
+++ b/libavformat/dss.c
@@ -326,7 +326,7 @@ static int dss_read_close(AVFormatContext *s)
 {
     DSSDemuxContext *ctx = s->priv_data;
 
-    av_free(ctx->dss_sp_buf);
+    av_freep(&ctx->dss_sp_buf);
 
     return 0;
 }

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to