avfilter/vf_mcdeint: free frame on error
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 3 Jun 2013 13:41:29 +0000 (15:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 3 Jun 2013 13:41:29 +0000 (15:41 +0200)
Fixes CID1026766
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_mcdeint.c

index 9903036..4bd11a0 100644 (file)
@@ -278,8 +278,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
 end:
     av_free_packet(&pkt);
     av_frame_free(&inpic);
-    if (ret < 0)
+    if (ret < 0) {
+        av_frame_free(&outpic);
         return ret;
+    }
     return ff_filter_frame(outlink, outpic);
 }