[FFmpeg-cvslog] avformat/dss: Use av_freep() to avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Thu Feb 19 22:23:19 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | 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 <michaelni at gmx.at>
> 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;
}
More information about the ffmpeg-cvslog
mailing list