TT#14008 fix possible AMR decoder mem leak

closes #1512

Change-Id: I7cd5605adbcc340b5e73d7d3daf5f8f70d8b6931
pull/1525/head
Richard Fuchs 3 years ago
parent 08701819da
commit e683b813e5

@ -2014,6 +2014,7 @@ static void amr_bitrate_tracker(decoder_t *dec, unsigned int ft) {
}
static int amr_decoder_input(decoder_t *dec, const str *data, GQueue *out) {
const char *err = NULL;
AUTO_CLEANUP(GQueue toc, g_queue_clear) = G_QUEUE_INIT;
if (!data || !data->s)
goto err;
@ -2021,7 +2022,6 @@ static int amr_decoder_input(decoder_t *dec, const str *data, GQueue *out) {
bitstr d;
bitstr_init(&d, data);
GQueue toc = G_QUEUE_INIT;
unsigned int ill = 0, ilp = 0;
unsigned char cmr_chr[2];

Loading…
Cancel
Save