History

avformat/iamf_parse: add missing av_free() call on failure path

Fixes ticket #11416

James Almer committed 1 year ago

Commit d5873be1 parent b88fc4e1 file · +1 −0Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/iamf_parse.c+1−0
@@ -570,6 +570,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext *pb, · 569 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t