From b9e7bde6bd84cc86191c94e539070ff0361c553b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 16 Sep 2013 22:49:17 +0200 Subject: [PATCH] lavf/avienc: use av_freep() avoid stale pointers Signed-off-by: Michael Niedermayer --- libavformat/avienc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avienc.c b/libavformat/avienc.c index 3511c8181d..a8d333e348 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -636,7 +636,7 @@ static int avi_write_trailer(AVFormatContext *s) for (i=0; inb_streams; i++) { AVIStream *avist= s->streams[i]->priv_data; for (j=0; jindexes.ents_allocated/AVI_INDEX_CLUSTER_SIZE; j++) - av_free(avist->indexes.cluster[j]); + av_freep(&avist->indexes.cluster[j]); av_freep(&avist->indexes.cluster); avist->indexes.ents_allocated = avist->indexes.entry = 0; }