summaryrefslogtreecommitdiff
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-15 00:16:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-15 00:38:05 +0100
commit4efdb29c75ba57cb119c04f303fd74e2fd0f0368 (patch)
treea26bd5438d25ef07b2d40e7b9671e2eb67f773ae /libavformat/dv.c
parent00dc2859f050133bf273236bb1b45eb477a1e2ed (diff)
downloadffmpeg-4efdb29c75ba57cb119c04f303fd74e2fd0f0368.tar.gz
avformat/dv: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r--libavformat/dv.c2
1 files changed, 1 insertions, 1 deletions
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;
}