mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/mxfdec: Free all types for both Descriptors
Fixes: memleak Fixes: 26352/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5201158714687488 Suggested-by: Tomas Härdin <tjoppen@acc.umu.se> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
90e4862ffa
commit
88519be8db
@ -343,11 +343,10 @@ static void mxf_free_metadataset(MXFMetadataSet **ctx, int freectx)
|
||||
MXFIndexTableSegment *seg;
|
||||
switch ((*ctx)->type) {
|
||||
case Descriptor:
|
||||
case MultipleDescriptor:
|
||||
av_freep(&((MXFDescriptor *)*ctx)->extradata);
|
||||
av_freep(&((MXFDescriptor *)*ctx)->mastering);
|
||||
av_freep(&((MXFDescriptor *)*ctx)->coll);
|
||||
break;
|
||||
case MultipleDescriptor:
|
||||
av_freep(&((MXFDescriptor *)*ctx)->sub_descriptors_refs);
|
||||
break;
|
||||
case Sequence:
|
||||
|
Loading…
x
Reference in New Issue
Block a user