1
0
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:
Janne Grunau 2014-02-08 12:52:32 +01:00
parent 6a8475dc4f
commit b37effdc52

View File

@ -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;