libavformat/mxfdec: fix MXFPackage->comment_refs memory leak
authorMark Reid <mindmark@gmail.com>
Sun, 15 Mar 2015 21:43:32 +0000 (14:43 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 16 Mar 2015 02:37:44 +0000 (03:37 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mxfdec.c

index 216a9f1..b60a56d 100644 (file)
@@ -316,6 +316,7 @@ static void mxf_free_metadataset(MXFMetadataSet **ctx, int freectx)
     case MaterialPackage:
         av_freep(&((MXFPackage *)*ctx)->tracks_refs);
         av_freep(&((MXFPackage *)*ctx)->name);
+        av_freep(&((MXFPackage *)*ctx)->comment_refs);
         break;
     case TaggedValue:
         av_freep(&((MXFTaggedValue *)*ctx)->name);