From patchwork Tue Jan 26 17:01:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 25201 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 8826A44A93F for ; Tue, 26 Jan 2021 19:01:41 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 526D26881CE; Tue, 26 Jan 2021 19:01:41 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 23C8D6881BD for ; Tue, 26 Jan 2021 19:01:35 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id B0BE6240693 for ; Tue, 26 Jan 2021 18:01:34 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id qUHeeZYm6yUa for ; Tue, 26 Jan 2021 18:01:31 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id E3B27240684 for ; Tue, 26 Jan 2021 18:01:31 +0100 (CET) Received: by libav.khirnov.net (Postfix, from userid 1000) id BEE5C3A0181; Tue, 26 Jan 2021 18:01:31 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 26 Jan 2021 18:01:00 +0100 Message-Id: <20210126170102.15175-2-anton@khirnov.net> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210126170102.15175-1-anton@khirnov.net> References: <20210126170102.15175-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/4] vf_pp: remove unnecessary free X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" ff_qp_table_extract() frees the table on failure. Found-by: Andreas Rheinhardt --- libavfilter/vf_pp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavfilter/vf_pp.c b/libavfilter/vf_pp.c index 29ab777e01..19a0f9fc6e 100644 --- a/libavfilter/vf_pp.c +++ b/libavfilter/vf_pp.c @@ -145,7 +145,6 @@ static int pp_filter_frame(AVFilterLink *inlink, AVFrame *inbuf) if (ret < 0) { av_frame_free(&inbuf); av_frame_free(&outbuf); - av_freep(&qp_table); return ret; }