avcodec/bfi: use av_freep(), do not leave stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Oct 2014 14:08:28 +0000 (16:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Oct 2014 14:08:28 +0000 (16:08 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bfi.c

index c7ac378..77bca49 100644 (file)
@@ -171,7 +171,7 @@ static int bfi_decode_frame(AVCodecContext *avctx, void *data,
 static av_cold int bfi_decode_close(AVCodecContext *avctx)
 {
     BFIContext *bfi = avctx->priv_data;
-    av_free(bfi->dst);
+    av_freep(&bfi->dst);
     return 0;
 }