diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-16 22:49:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-16 22:49:17 +0200 |
commit | b9e7bde6bd84cc86191c94e539070ff0361c553b (patch) | |
tree | 8b4c88ea81aa14622888f658ed1d5db5b8134881 /libavformat/avienc.c | |
parent | 46a723ec7254e6c99958db84be1e490582981032 (diff) | |
download | ffmpeg-b9e7bde6bd84cc86191c94e539070ff0361c553b.tar.gz |
lavf/avienc: use av_freep() avoid stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r-- | libavformat/avienc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; i<s->nb_streams; i++) { AVIStream *avist= s->streams[i]->priv_data; for (j=0; j<avist->indexes.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; } |