From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 70CDD4C3A4 for ; Mon, 23 Jun 2025 11:55:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id F18AD687A6D; Mon, 23 Jun 2025 14:55:39 +0300 (EEST) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id B7C7868E1C5 for ; Mon, 23 Jun 2025 14:55:32 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id D89A84321D for ; Mon, 23 Jun 2025 11:55:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1750679732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eSk0fBvX0Ed/vbmd+P8xkL4JqeYn/uhds7Vm4vjIjZI=; b=DDy4RaJujvAdUbn50O9DvZAYi1+V7Y+RfG1SSP2BO4qNc7P4uZAaAhP82++iAIadUlP+0W D7HAkUPECLMQMGxN9QaEksDnKUXoeQZGzGWO5icV8E+QtlqcggwYkEGcbBMuMJ6LiMEGT9 hRjg2I9hgbCrip1QUoliE+M05msOgr9oExU3FF8nrZvQJu4pfA7k3A3QvqddcL/kNvLTPp iSaegaYX0gB5WmLM3WyKfoi2p7eXtwI68R8oNv/+iYs8VRrnIUF1Lz4aNb+Z5ZcSQ7dI1K hjzEIq5K6MHJh2zK5WQXonvccmbl0Ao+ssCX9ZlAUhzDxw3ywzub2TYTanEzlA== Date: Mon, 23 Jun 2025 13:55:30 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250623115530.GD29660@pb2> References: <20250617141416.950239-1-502024330056@smail.nju.edu.cn> <20250617141416.950239-3-502024330056@smail.nju.edu.cn> MIME-Version: 1.0 In-Reply-To: <20250617141416.950239-3-502024330056@smail.nju.edu.cn> X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddvgdduieeliecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdlfedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 2/4] avfilter/asrc_sinc: fix leak in config_input() 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: multipart/mixed; boundary="===============2716335547175954896==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============2716335547175954896== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9wnUbTS++sSthSwf" Content-Disposition: inline --9wnUbTS++sSthSwf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi On Tue, Jun 17, 2025 at 10:14:14PM +0800, Lidong Yan wrote: > In config_input(), fir_to_phase() allocates memory in h[longer]. > But if av_calloc() to s->coeffs failed, memory in h[longer] would > leak. Add av_free(h[longer]) in !s->coeffs path. does the other return in config_output() not need this free too? thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Some people wanted to paint the bikeshed green, some blue and some pink. People argued and fought, when they finally agreed, only rust was left. --9wnUbTS++sSthSwf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaFlAsgAKCRBhHseHBAsP q3hzAJ4lajwQQYnCVH93s3hl5ih8qMQQ2QCggIojf4E4wfloMYj+W+si+YvQEmM= =B79k -----END PGP SIGNATURE----- --9wnUbTS++sSthSwf-- --===============2716335547175954896== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============2716335547175954896==--