From ced3b8c61e969cab511d4418e47353f347af04d5 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 25 Sep 2019 21:39:49 +0200 Subject: avfilter/vf_zoompan: fix leaks --- libavfilter/vf_zoompan.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavfilter') diff --git a/libavfilter/vf_zoompan.c b/libavfilter/vf_zoompan.c index 6b37890f1f..59c9b19ec8 100644 --- a/libavfilter/vf_zoompan.c +++ b/libavfilter/vf_zoompan.c @@ -245,6 +245,8 @@ static int output_single_frame(AVFilterContext *ctx, AVFrame *in, double *var_va } return ret; error: + sws_freeContext(s->sws); + s->sws = NULL; av_frame_free(&out); return ret; } @@ -346,6 +348,10 @@ static av_cold void uninit(AVFilterContext *ctx) sws_freeContext(s->sws); s->sws = NULL; + av_expr_free(s->x_expr); + av_expr_free(s->y_expr); + av_expr_free(s->zoom_expr); + av_frame_free(&s->in); } static const AVFilterPad inputs[] = { -- cgit v1.2.3