From 889afca369ef3a939c68592ef2b1a1756667ce21 Mon Sep 17 00:00:00 2001 From: Alex Sukhanov Date: Sun, 2 Feb 2014 17:16:01 -0800 Subject: avcodec/aac_adtstoasc_bsf: Fix memory leak Signed-off-by: Michael Niedermayer --- libavcodec/aac_adtstoasc_bsf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/aac_adtstoasc_bsf.c') diff --git a/libavcodec/aac_adtstoasc_bsf.c b/libavcodec/aac_adtstoasc_bsf.c index c8f9e0ae69..37ba5c17d2 100644 --- a/libavcodec/aac_adtstoasc_bsf.c +++ b/libavcodec/aac_adtstoasc_bsf.c @@ -87,6 +87,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, buf_size -= get_bits_count(&gb)/8; buf += get_bits_count(&gb)/8; } + av_free(avctx->extradata); avctx->extradata_size = 2 + pce_size; avctx->extradata = av_mallocz(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE); -- cgit v1.2.3