mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/cbs_av1: Free content in cbs_av1_free_metadata()
Fixes: memleak Fixes: 25838/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5736255957237760 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
f7fd205f11
commit
d40f249861
|
@ -1228,6 +1228,7 @@ static void cbs_av1_free_metadata(void *unit, uint8_t *content)
|
|||
av_buffer_unref(&md->metadata.itut_t35.payload_ref);
|
||||
break;
|
||||
}
|
||||
av_free(content);
|
||||
}
|
||||
|
||||
static const CodedBitstreamUnitTypeDescriptor cbs_av1_unit_types[] = {
|
||||
|
|
Loading…
Reference in New Issue