summaryrefslogtreecommitdiffstats
path: root/libavcodec/eamad.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-11 22:50:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-11 22:50:51 +0200
commitc712d240b1684dd5eb32636a28699742034618a0 (patch)
tree6f0b44ce9c07911256e3a19bfb1bb2ca1d0b7c12 /libavcodec/eamad.c
parent8c4ca4aa5aa998e31337e30ff30ebf48f534acc2 (diff)
downloadffmpeg-streaming-c712d240b1684dd5eb32636a28699742034618a0.zip
ffmpeg-streaming-c712d240b1684dd5eb32636a28699742034618a0.tar.gz
avcodec/eamad: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/eamad.c')
-rw-r--r--libavcodec/eamad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index 711363c..c768b93 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -329,7 +329,7 @@ static av_cold int decode_end(AVCodecContext *avctx)
{
MadContext *t = avctx->priv_data;
av_frame_free(&t->last_frame);
- av_free(t->bitstream_buf);
+ av_freep(&t->bitstream_buf);
return 0;
}
OpenPOWER on IntegriCloud