Fixes: 371445194/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5981081124274176 Fixes: memleak
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -1104,6 +1104,8 @@ static av_cold int decode_close(AVCodecContext *avctx) · 1103 unmodified lines | |||
| 1104 | 1104 | ||
| 1105 | for (int i = 0; i < 2; i++) { | 1105 | for (int i = 0; i < 2; i++) { |
| 1106 | OutputConfiguration *oc = &ac->oc[i]; | 1106 | OutputConfiguration *oc = &ac->oc[i]; |
| 1107 | av_channel_layout_uninit(&ac->oc[i].ch_layout); | ||
| 1108 | |||
| 1107 | AACUSACConfig *usac = &oc->usac; | 1109 | AACUSACConfig *usac = &oc->usac; |
| 1108 | for (int j = 0; j < usac->nb_elems; j++) { | 1110 | for (int j = 0; j < usac->nb_elems; j++) { |
| 1109 | AACUsacElemConfig *ec = &usac->elems[j]; | 1111 | AACUsacElemConfig *ec = &usac->elems[j]; |