avcodec/eamad: use av_freep(), do not leave stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Oct 2014 20:50:51 +0000 (22:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 11 Oct 2014 20:50:51 +0000 (22:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/eamad.c

index 711363c..c768b93 100644 (file)
@@ -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;
 }