Skip to content

Commit d5873be

Browse files
committed
avformat/iamf_parse: add missing av_free() call on failure path
Fixes ticket #11416 Signed-off-by: James Almer <[email protected]>
1 parent b88fc4e commit d5873be

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
@@ -570,6 +570,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext *pb,
570570

571571
if (!mode && !constant_subblock_duration && total_duration != duration) {
572572
av_log(s, AV_LOG_ERROR, "Invalid subblock durations in parameter_id %u\n", parameter_id);
573+
av_free(param);
573574
return AVERROR_INVALIDDATA;
574575
}
575576

0 commit comments

Comments
 (0)