From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id A6A774B646 for ; Wed, 10 Jul 2024 22:50:25 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 09AC268DB46; Thu, 11 Jul 2024 01:50:22 +0300 (EEST) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C563D68DA82 for ; Thu, 11 Jul 2024 01:50:14 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 96F0B40004 for ; Wed, 10 Jul 2024 22:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1720651813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=FB2oTq5lWTsSHDQpMV8eKJjI+gDX5eAjUgEYj8fSuD8=; b=oPlrphMYS2CLYprZGMElxAxWyZnFm8fN1f773xjeOaJRwa8mNn2xyH6sanPty+TY0mgs+s 3sNevRH76KWQArH92Z8QxWbkAkGzjLbQdEeV4EmyqV1HNL36mj121W+xKafyygVLcCw4Qd Jr/nXQbpXN9jeOjyNz3yX3/O/xmrPDyBKk1MyPBIaUFfRWjBfzpfAgrodiSXBrVgt4Nqwj vB/zw97WFk7e/4kqYXoV1uC2+uE8XV6eB/lTpvMGPUFux+JvAYU/lnVcx/IJkhabgdHKOl OjoSaQ5OOZ4LUiAggXJqhyMqOJXNIYGVoVSc4tQQ5bDqHhxStiKodl63kk8v6Q== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 11 Jul 2024 00:50:07 +0200 Message-ID: <20240710225012.691594-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/6] avfilter/vf_tiltandshift: Free dst on error X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes: CID1559901 Resource leak Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavfilter/vf_tiltandshift.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_tiltandshift.c b/libavfilter/vf_tiltandshift.c index b49a713339d..08bcb062473 100644 --- a/libavfilter/vf_tiltandshift.c +++ b/libavfilter/vf_tiltandshift.c @@ -237,8 +237,10 @@ static int output_frame(AVFilterLink *outlink) // set correct timestamps and props as long as there is proper input ret = av_frame_copy_props(dst, s->input); - if (ret < 0) + if (ret < 0) { + av_frame_free(&dst); return ret; + } // discard frame at the top of the list since it has been fully processed list_remove_head(s); -- 2.45.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".