ffmpeg | branch: master | James Almer <jamr...@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 <jamr...@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;
     }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to