diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2020-10-20 20:22:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2021-09-10 16:04:26 +0200 |
commit | a0984a153eed8f5074ab61161b19ab5c2fe3f1a1 (patch) | |
tree | 389fd20d5f7150ff966f534cf51b200153518835 | |
parent | d5aa69dbed759180425f33f9cb23751350287999 (diff) | |
download | ffmpeg-a0984a153eed8f5074ab61161b19ab5c2fe3f1a1.tar.gz |
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>
(cherry picked from commit 88519be8db66811e203408b413d9039ac9c3fe91)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/mxfdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index eca4dfed9c..85058faea4 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -330,9 +330,8 @@ static void mxf_free_metadataset(MXFMetadataSet **ctx, int freectx) MXFIndexTableSegment *seg; switch ((*ctx)->type) { case Descriptor: - av_freep(&((MXFDescriptor *)*ctx)->extradata); - break; case MultipleDescriptor: + av_freep(&((MXFDescriptor *)*ctx)->extradata); av_freep(&((MXFDescriptor *)*ctx)->sub_descriptors_refs); break; case Sequence: |