avfilter/af_agate: fix memleak of out frame
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Feb 2016 21:17:32 +0000 (22:17 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Feb 2016 21:51:32 +0000 (22:51 +0100)
Fixes CID1351358

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/af_agate.c

index 17e770f..328e25b 100644 (file)
@@ -295,6 +295,7 @@ static int scfilter_frame(AVFilterLink *link, AVFrame *frame)
         if (!in[i]) {
             av_frame_free(&in[0]);
             av_frame_free(&in[1]);
+            av_frame_free(&out);
             return AVERROR(ENOMEM);
         }
         av_audio_fifo_read(s->fifo[i], (void **)in[i]->data, nb_samples);