From 4efdb29c75ba57cb119c04f303fd74e2fd0f0368 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 15 Dec 2014 00:16:49 +0100 Subject: [PATCH] avformat/dv: Use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- libavformat/dv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dv.c b/libavformat/dv.c index 4b8593d882..0a893f482e 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; }