mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/aac/aacdec: Free channel layout
Fixes: 371445194/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5981081124274176 Fixes: memleak Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d1d9b0813a
commit
ae81beb351
@ -1104,6 +1104,8 @@ static av_cold int decode_close(AVCodecContext *avctx)
|
||||
|
||||
for (int i = 0; i < 2; i++) {
|
||||
OutputConfiguration *oc = &ac->oc[i];
|
||||
av_channel_layout_uninit(&ac->oc[i].ch_layout);
|
||||
|
||||
AACUSACConfig *usac = &oc->usac;
|
||||
for (int j = 0; j < usac->nb_elems; j++) {
|
||||
AACUsacElemConfig *ec = &usac->elems[j];
|
||||
|
Loading…
Reference in New Issue
Block a user