[FFmpeg-cvslog] avformat/dv: Use av_freep() to avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Mon Dec 15 00:51:16 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Dec 15 00:16:49 2014 +0100| [4efdb29c75ba57cb119c04f303fd74e2fd0f0368] | committer: Michael Niedermayer

avformat/dv: 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=4efdb29c75ba57cb119c04f303fd74e2fd0f0368
---

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

diff --git a/libavformat/dv.c b/libavformat/dv.c
index 4b8593d..0a893f4 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -580,7 +580,7 @@ static int dv_read_seek(AVFormatContext *s, int stream_index,
 static int dv_read_close(AVFormatContext *s)
 {
     RawDVContext *c = s->priv_data;
-    av_free(c->dv_demux);
+    av_freep(&c->dv_demux);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list