aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-08 22:17:32 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-08 22:51:32 +0100
commit8e46c7c1e7f5e775a152f6d75a08e93ddb9f7565 (patch)
treed8ab02ae1006e22f616c2b2decfdc91f91e1aeb1
parent253209ac444947d4735be84469c582df2718a59e (diff)
downloadffmpeg-8e46c7c1e7f5e775a152f6d75a08e93ddb9f7565.tar.gz
avfilter/af_agate: fix memleak of out frame
Fixes CID1351358 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/af_agate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_agate.c b/libavfilter/af_agate.c
index 17e770fa29..328e25ba84 100644
--- a/libavfilter/af_agate.c
+++ b/libavfilter/af_agate.c
@@ -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);