From 5b4010e88686ea40a56f016f3c27753af6b3c766 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 7 Oct 2019 11:10:45 +0200 Subject: [PATCH] avfilter/vf_nnedi: fix possible double free --- libavfilter/vf_nnedi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c index b14aa64c04..9bad99e98a 100644 --- a/libavfilter/vf_nnedi.c +++ b/libavfilter/vf_nnedi.c @@ -809,8 +809,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *src) ret = get_frame(ctx, 1); if (ret < 0) { av_frame_free(&s->dst); - av_frame_free(&s->src); av_frame_free(&s->second); + s->src = NULL; return ret; } dst = s->dst;