avfilter/can_merge_formats: fix memleak
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jul 2013 14:54:04 +0000 (16:54 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jul 2013 14:54:04 +0000 (16:54 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avfiltergraph.c

index 2f6f2fd..3bb5047 100644 (file)
@@ -390,6 +390,7 @@ static int can_merge_formats(AVFilterFormats *a_arg,
     }
     if (ret) {
         av_freep(&ret->formats);
+        av_freep(&ret->refs);
         av_freep(&ret);
         return 1;
     } else {