aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libfdk-aacdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-17 20:36:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-17 20:36:14 +0200
commite18fc35a07f4ed31ca8c330388500677ca33a1f6 (patch)
tree6847bb7dbb024ed0a714c4d4eb333ac174850f87 /libavcodec/libfdk-aacdec.c
parent5a1aa559054b197b64453c60dd01bc5c37532ff9 (diff)
downloadffmpeg-e18fc35a07f4ed31ca8c330388500677ca33a1f6.tar.gz
avcodec/libfdk-aacdec: use av_feeep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libfdk-aacdec.c')
-rw-r--r--libavcodec/libfdk-aacdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libfdk-aacdec.c b/libavcodec/libfdk-aacdec.c
index 65bd36a448..dff96a12af 100644
--- a/libavcodec/libfdk-aacdec.c
+++ b/libavcodec/libfdk-aacdec.c
@@ -177,8 +177,8 @@ static av_cold int fdk_aac_decode_close(AVCodecContext *avctx)
if (s->handle)
aacDecoder_Close(s->handle);
- av_free(s->decoder_buffer);
- av_free(s->anc_buffer);
+ av_freep(&s->decoder_buffer);
+ av_freep(&s->anc_buffer);
return 0;
}