diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 00:16:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-15 00:38:05 +0100 |
commit | 4efdb29c75ba57cb119c04f303fd74e2fd0f0368 (patch) | |
tree | a26bd5438d25ef07b2d40e7b9671e2eb67f773ae | |
parent | 00dc2859f050133bf273236bb1b45eb477a1e2ed (diff) | |
download | ffmpeg-4efdb29c75ba57cb119c04f303fd74e2fd0f0368.tar.gz |
avformat/dv: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/dv.c | 2 |
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; } |