Skip to content

Commit 04fd3f6

Browse files
committed
avformat/iamf_parse: add missing av_free() call on failure path
Fixes ticket #11416 Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit d5873be)
1 parent 8cabfd9 commit 04fd3f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libavformat/iamf_parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext *pb,
565565

566566
if (!mode && !constant_subblock_duration && total_duration != duration) {
567567
av_log(s, AV_LOG_ERROR, "Invalid subblock durations in parameter_id %u\n", parameter_id);
568+
av_free(param);
568569
return AVERROR_INVALIDDATA;
569570
}
570571

0 commit comments

Comments
 (0)