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 33D204AF4D for ; Sat, 19 Jul 2025 00:20:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 4521668DEED; Sat, 19 Jul 2025 03:20:11 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id BDE2B68DE50 for ; Sat, 19 Jul 2025 03:20:04 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 228F441CFD for ; Sat, 19 Jul 2025 00:20:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1752884404; 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=mWhc3I3B4U9Xb2xQwH3+vqM2AJfDmPU0aVbG9a5GEW4=; b=ObxL6cee3wP5OpvdF3aGkV4FvpUqxKWE2jLSob8l551dGfirqN9Qnl4bBqBk4TZgorT1Ee sroJ38E/gnoOTfeeFvxEg0fto4s9sB9DjknvUzYs8jVOUjZtm0ptac2PgE8/nfkVlcMCvR mZDDYoh9kNwiyGTJf69JS4jrKE4obKfUCw4y4vu3PTJfzwzarG5/ZQWXtb0NUh9TQOzu1j sSuWXcOVFv4SmtEw00DFE6e6ZTerKQ89Wjl5sigTMhpXkyKMQmq0COn2E5cVWtxmcyHa01 C5JFFEnXBZmNW/nLqIstZRaXyGC7F3lXT+R+K5xWxcmthz0UbyfBulPDiVjnKg== Date: Sat, 19 Jul 2025 02:20:03 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250719002003.GQ29660@pb2> References: <20250715003109.7028-1-jiashengjiangcool@gmail.com> MIME-Version: 1.0 In-Reply-To: <20250715003109.7028-1-jiashengjiangcool@gmail.com> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeigeekkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeihedrudejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeihedrudejiedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH v3] fftools/cmdutils: Add av_freep() to avoid memory leak 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="===============4296528825305520550==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============4296528825305520550== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TUwH6K/tb3K/Jg2T" Content-Disposition: inline --TUwH6K/tb3K/Jg2T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 15, 2025 at 12:31:09AM +0000, Jiasheng Jiang wrote: > Add av_freep() to free new_elem to avoid memory leak. >=20 > Fixes: 3ca1e31e63 ("fftools/cmdutils: Atomically add elements to list of = pointers, fix crash") > Signed-off-by: Jiasheng Jiang > --- > Changelog: >=20 > v2 -> v3: >=20 > 1. Replace with a correct fixes tag. >=20 > v1 -> v2: >=20 > 1. Remove the unnecessary return NULL. > --- > fftools/cmdutils.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The day soldiers stop bringing you their problems is the day you have stopp= ed=20 leading them. They have either lost confidence that you can help or conclud= ed=20 you do not care. Either case is a failure of leadership. - Colin Powell --TUwH6K/tb3K/Jg2T Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaHrksgAKCRBhHseHBAsP q4tiAJ48ABKprck2NUNIkkG6qr5+Drv3YwCfV7OAXO7NGLT+Nea1Zu0M9FQUJlY= =rSIJ -----END PGP SIGNATURE----- --TUwH6K/tb3K/Jg2T-- --===============4296528825305520550== 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". --===============4296528825305520550==--