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 8AAA04CECB for ; Mon, 11 Aug 2025 20:55:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id C48D868C6B2; Mon, 11 Aug 2025 23:55:14 +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 15BF3688FD9 for ; Mon, 11 Aug 2025 23:55:08 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6C99D443AE for ; Mon, 11 Aug 2025 20:55:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1754945707; 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=UaCBLvnwwPTwKVbHHMz0CKTJ6MdhuRtC6/zPPy0hUTA=; b=KeN2JPaMI7P56YW+dNutWqdKfhUa/93Wl5QcQbWXZ4j5B/adAC9XqJBu2miiiJy+mlDNc6 ICFcn8kQmtlTCaqLl2J16zAP+5JFVkkcQxTKEzKeWOJdxES5+HGdsCR67nl0tSYWiaOt3k Qa1Yd+gJHwDtH4qCFUIxkGTtgfMKcYjYhudGXUsfpFs8X64FmRsj7JKoqzVNlVIfDVD6Dy SiVyNpuzEJ0kkfZG+7ee1Fn3JT9XHt+OiIpfyRd4Fpk70DU9zZjLcD3WYUQUtuIWqwC4Jp KP4oUGyrHx0a3Ogk9kVZQmL4Y0w0EJ8zvAq3b01A7nn7me86x0vc7yqyE2QLLQ== Date: Mon, 11 Aug 2025 22:55:06 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250811205506.GB29660@pb2> References: <20250808192229.19078-1-jiashengjiangcool@gmail.com> MIME-Version: 1.0 In-Reply-To: <20250808192229.19078-1-jiashengjiangcool@gmail.com> X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddufeefgeeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdeftddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeelkeeggfffiedufeejueffjeduhedttdduledtheevveevtdeiueelhfdtuedtkeenucfkphepgedurdeiiedrieehrddujeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieehrddujeeipdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] tests/api/api-h264-test: Add proper error handling to avoid potential memory leaks 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="===============4232290084573796596==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============4232290084573796596== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SSZ3fShTcovrNkrv" Content-Disposition: inline --SSZ3fShTcovrNkrv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 08, 2025 at 07:22:29PM +0000, Jiasheng Jiang wrote: [...] > @@ -69,44 +70,49 @@ static int video_decode_example(const char *input_fil= ename) > codec =3D avcodec_find_decoder(origin_par->codec_id); > if (!codec) { > av_log(NULL, AV_LOG_ERROR, "Can't find decoder\n"); > - return -1; > + result =3D -1; > + goto cloce_fmt_ctx; > } > =20 > ctx =3D avcodec_alloc_context3(codec); > if (!ctx) { > av_log(NULL, AV_LOG_ERROR, "Can't allocate decoder context\n"); > - return AVERROR(ENOMEM); > + result =3D AVERROR(ENOMEM); > + goto free_fmt_ctx; make -j32 fate-api-h264 CC tests/api/api-h264-test.o tests/api/api-h264-test.c: In function =E2=80=98video_decode_example=E2=80= =99: tests/api/api-h264-test.c:81:9: error: label =E2=80=98free_fmt_ctx=E2=80=99= used but not defined 81 | goto free_fmt_ctx; | ^~~~ make: *** [ffbuild/common.mak:81: tests/api/api-h264-test.o] Error 1 [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Nations do behave wisely once they have exhausted all other alternatives.= =20 -- Abba Eban --SSZ3fShTcovrNkrv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaJpYpAAKCRBhHseHBAsP qzFNAJ9NcM4QwMqPV+QJJyAqYl1a1r407wCeMtIsKMhXd8bWDqujdsmj0M7yNGY= =bx9P -----END PGP SIGNATURE----- --SSZ3fShTcovrNkrv-- --===============4232290084573796596== 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". --===============4232290084573796596==--