[FFmpeg-cvslog] avformat/iamf_parse: add missing av_free() call on failure path
James Almer
git at videolan.org
Mon Jan 13 22:28:49 EET 2025
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Jan 13 17:28:02 2025 -0300| [d5873be583ada9e1fb887e2fe8dcfd4b12e0efcd] | committer: James Almer
avformat/iamf_parse: add missing av_free() call on failure path
Fixes ticket #11416
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5873be583ada9e1fb887e2fe8dcfd4b12e0efcd
---
libavformat/iamf_parse.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c
index 7cf27651ee..316093b35f 100644
--- a/libavformat/iamf_parse.c
+++ b/libavformat/iamf_parse.c
@@ -570,6 +570,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext *pb,
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_free(param);
return AVERROR_INVALIDDATA;
}
More information about the ffmpeg-cvslog
mailing list