diff options
author | Janne Grunau <janne-libav@jannau.net> | 2014-02-08 12:52:32 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2014-02-09 18:50:53 +0100 |
commit | b37effdc52835e121a0e259e57273a19f9cd61a3 (patch) | |
tree | bce89d40fda4ac38018c1e69eafbf4e41286adb3 /libavformat | |
parent | 6a8475dc4f10d65edb7faa8df6e035af0ddcce19 (diff) | |
download | ffmpeg-b37effdc52835e121a0e259e57273a19f9cd61a3.tar.gz |
mxfdec: free descriptor extradata in .read_close()
Fixes memleak in fate-mxf-demux.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mxfdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 296044edc3..158e866d23 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -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; |