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 A50614DFAC for ; Fri, 9 Jan 2026 02:20:56 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'loGQW1D0QJYOP+xOHJFUrJ962IA3/T6gWmhiRbPt97Y=', expected b'cuG4hhQa8xvQfd/hUK41rk9j8NIB7E1Zw662tUzEt2E=')) header.d=niedermayer.cc header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1767925249; h=date : to : message-id : references : mime-version : in-reply-to : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : from; bh=PPsUi4Epnn0isCvDkc5G/Ph+tqhOVwEDjj0kG+/deyI=; b=XTGjRo8VcDsmLhwJ8afQcdPIWPBNld2K5BR/KDKCkXDLu57DjpPWfU88w7OxePJ7RX4kp nrtj/UuG/HwdIA9Mshs3qQtgqF6L1q85KhtGwEq0eykEA9KsqQOKtTZ99pU2Ih3jYhXvVQS GxZEicsXF3NosbUJqmsxtR22EiAfToIRZH/hfmOyYDezXD8f5noLeTeRcp/i3ZfqBHL+Bvw 0bt88tz4lDTy+/zQxpk71eB/JDKO1qi/BThYL/jhI3YyX0nyF9GVyPcYBPEeB2KCb6C2OVW hKoCZcFGt0PDjBjyu8ADbbQr734S7KnPYNBoVVIfsLIn54yBSC5r6+3kaIqQ== Received: from [172.20.0.4] (unknown [172.20.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 39288690D95; Fri, 9 Jan 2026 04:20:49 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1767925236; b=V7pIDnpMIx+eoQEhaX/RlmlluIetigAjnF2386lhlyYuKEieqe4WRlms7kO0gFWYsM3O0 m3dyxhmecCzIs8DATOa+zzJ/eT/u4tZF+eBuzMdIuaBPwMo9jXfQrbdnLJQr3AjkqZJGBWV cQMmprG2H4HR8UsUHR/3IK5g8JSOKtpNpPfktTHzNhyVfQDnJfgBTlrkGiAuPfVc0QE/1b5 PYbN9JgwrPyVR54F03N93Q98E38brCWtAr8/YH7CJFhdXXcLPUXX7YDhufNmY3jYgU2He53 e9C+0rIpQN0N/PLSye1cCLE/tTAbnIbklN4SeZpZk/EZSo0lKy/VynBCy4OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1767925236; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=loGQW1D0QJYOP+xOHJFUrJ962IA3/T6gWmhiRbPt97Y=; b=X32rVHnZRYGE2so2gcPxNSX2DhWVfGC2qTl9xN8RaIjLiiS+kmzQnLMEIwOQrpnJsgmB1 sMAYGUgpUeaY5dzbvXTAAFOZoxCofXoQey7yhMf2KMNCGQqFRILA3vSu5RkzzCSxVo9bFkT 40ppfEvCeegKYQlGX4ngNRUMBTVl6SvJgrBx+bMY0p5DG11fKzCd/BYP1763onwtttmQl2Y SUuhCV8Q9FgwUALI1C2m2/42QV4PHHSQ/dSZoEi46RD42Wu1I0nllj02nZJ/lg9KtnvhxX7 7p63tzuoweTV78DQlx6O7NBnLiul6HjJWsq+DS1PPYj7AYtWn+eAIv4EATKQ== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=niedermayer.cc; arc=none (Message is not ARC signed); dmarc=none Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id E9E806903D7 for ; Fri, 9 Jan 2026 04:20:23 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 173E0442A5 for ; Fri, 9 Jan 2026 02:20:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1767925223; 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=cuG4hhQa8xvQfd/hUK41rk9j8NIB7E1Zw662tUzEt2E=; b=X996tNYsEsLfFeJwooSntbkb8dLXSBGfTwsBeFdaDPKsp71K5zQjx1sArM+F2iamu+VO9p SCeSGkdNWyDWPOTw3v9qUqbR0V6TDWIZpWIGvJI10+3UBSY/ZBiO8NxF1M7S/O22Ty1vXY qBSyA7ii6jrssuWKfNVhweLWHgFVIUYycimUL13+SGcBVvi2FDERWoSL+cmZcM/scEJHAx c4x930X3Wp3UtG1GsLPqMrU1OyYnLaVKAxC3vlzouGXQ/byzdq1Hf7VafEqtIO+g5NwkNF b0U5PAxsG1fMVYOvPyk6bsC/KlCEGTgjW7bH6FRPG9YTBeF+pevrMO4mMdXpvQ== Date: Fri, 9 Jan 2026 03:20:21 +0100 To: FFmpeg development discussions and patches Message-ID: References: <20260105011147.752-1-monsterbat02@gmail.com> <20260105011147.752-2-monsterbat02@gmail.com> MIME-Version: 1.0 In-Reply-To: <20260105011147.752-2-monsterbat02@gmail.com> X-GND-Sasl: michael@niedermayer.cc X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddutdejiedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeeigeektdejudffjefhteegjedtgeettefggedthfejgfevhfetgeekjedtvdfhveenucfkphepgedurdeiiedrieeirdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeiiedrhedtpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpqhhiugepudejfefgtdeggedvteehpdhmohguvgepshhmthhpohhuthdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-State: clean Message-ID-Hash: YTG4UDIGUJNDB6BW5YTWXAE5C3WMOMHV X-Message-ID-Hash: YTG4UDIGUJNDB6BW5YTWXAE5C3WMOMHV X-MailFrom: SRS0=t8x0=7O=niedermayer.cc=michael@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] Re: [PATCH] doc/examples/extract_mvs: fix memory leak in codec context initialization List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Michael Niedermayer via ffmpeg-devel Cc: Michael Niedermayer Content-Type: multipart/mixed; boundary="===============8114288287161073250==" Archived-At: List-Archive: List-Post: --===============8114288287161073250== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qx9W944XDse1m7KD" Content-Disposition: inline --qx9W944XDse1m7KD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi 0xBat On Mon, Jan 05, 2026 at 02:11:42AM +0100, 0xBat via ffmpeg-devel wrote: > Ensure the allocated AVCodecContext is properly freed if avcodec_paramete= rs_to_context fails. >=20 > Signed-off-by: 0xBat > --- > doc/examples/extract_mvs.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/doc/examples/extract_mvs.c b/doc/examples/extract_mvs.c > index 5603064d72..b5ed2c5549 100644 > --- a/doc/examples/extract_mvs.c > +++ b/doc/examples/extract_mvs.c > @@ -109,6 +109,7 @@ static int open_codec_context(AVFormatContext *fmt_ct= x, enum AVMediaType type) > ret =3D avcodec_parameters_to_context(dec_ctx, st->codecpar); > if (ret < 0) { > fprintf(stderr, "Failed to copy codec parameters to codec co= ntext\n"); > + avcodec_free_context(&dec_ctx); > return ret; > } will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The bravest are surely those who have the clearest vision of what is before them, glory and danger alike, and yet notwithstanding go out to meet it. -- Thucydides --qx9W944XDse1m7KD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaWBl5QAKCRBhHseHBAsP q+S+AJ4rN5Yw6/HtQ/6Pz6frKIVvknbgWACfRyqKPQfpk7gA89Je/5MNNeSBXlo= =mBq0 -----END PGP SIGNATURE----- --qx9W944XDse1m7KD-- --===============8114288287161073250== 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 To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org --===============8114288287161073250==--