Browse Source

TT#14008 fix possible AMR decoder mem leak

closes #1512

Change-Id: I7cd5605adbcc340b5e73d7d3daf5f8f70d8b6931
(cherry picked from commit e683b813e5)
mr10.5.2
Richard Fuchs 4 years ago
parent
commit
97d32c86d1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/codeclib.c

+ 1
- 1
lib/codeclib.c View File

@ -2007,6 +2007,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;
@ -2014,7 +2015,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