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; }