summaryrefslogtreecommitdiff
path: root/libavcodec/bfi.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-08 16:08:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-08 16:08:28 +0200
commitf66fed6c429949fe2dc4ae34c35d2f19ac8be7e1 (patch)
treecf7771df43663b3c75eeeca9ab3686b92242adfb /libavcodec/bfi.c
parente97f38ce6300e9b8bca59db929487c915a87e4e4 (diff)
downloadffmpeg-f66fed6c429949fe2dc4ae34c35d2f19ac8be7e1.tar.gz
avcodec/bfi: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bfi.c')
-rw-r--r--libavcodec/bfi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bfi.c b/libavcodec/bfi.c
index c7ac3782cb..77bca4902f 100644
--- a/libavcodec/bfi.c
+++ b/libavcodec/bfi.c
@@ -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;
}