From f913f3788a369ab6f26d46367e872e6bf0a02685 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 28 Jan 2012 20:01:09 +0000 Subject: [PATCH] libopencore-amr: fix memleak Signed-off-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/libopencore-amr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/libopencore-amr.c b/libavcodec/libopencore-amr.c index d4853ca200..7a0555e6c5 100644 --- a/libavcodec/libopencore-amr.c +++ b/libavcodec/libopencore-amr.c @@ -202,6 +202,7 @@ static av_cold int amr_nb_encode_init(AVCodecContext *avctx) s->enc_state = Encoder_Interface_init(s->enc_dtx); if (!s->enc_state) { av_log(avctx, AV_LOG_ERROR, "Encoder_Interface_init error\n"); + av_freep(&avctx->coded_frame); return -1; }