mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
mxfdec: free descriptor extradata in .read_close()
Fixes memleak in fate-mxf-demux.
This commit is contained in:
parent
6a8475dc4f
commit
b37effdc52
@ -2200,6 +2200,9 @@ static int mxf_read_close(AVFormatContext *s)
|
||||
|
||||
for (i = 0; i < mxf->metadata_sets_count; i++) {
|
||||
switch (mxf->metadata_sets[i]->type) {
|
||||
case Descriptor:
|
||||
av_freep(&((MXFDescriptor *)mxf->metadata_sets[i])->extradata);
|
||||
break;
|
||||
case MultipleDescriptor:
|
||||
av_freep(&((MXFDescriptor *)mxf->metadata_sets[i])->sub_descriptors_refs);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user