You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avformat/iamf_parse: add missing av_free() call on failure path
Fixes ticket #11416 Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@ -570,6 +570,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext *pb,
|
|||||||
|
|
||||||
if (!mode && !constant_subblock_duration && total_duration != duration) {
|
if (!mode && !constant_subblock_duration && total_duration != duration) {
|
||||||
av_log(s, AV_LOG_ERROR, "Invalid subblock durations in parameter_id %u\n", parameter_id);
|
av_log(s, AV_LOG_ERROR, "Invalid subblock durations in parameter_id %u\n", parameter_id);
|
||||||
|
av_free(param);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user