mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
libopencore-amr: fix memleak
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
766e160e87
commit
f913f3788a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user