From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 7690E47250 for ; Wed, 19 Feb 2025 02:29:43 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2E9F868BE13; Wed, 19 Feb 2025 04:29:39 +0200 (EET) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8921168BB7C for ; Wed, 19 Feb 2025 04:29:32 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 835CD4440D for ; Wed, 19 Feb 2025 02:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1739932171; 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=4ODh/xQqbyx9ezWfdv/KIms9aclyeQnpJwezkwNuQTg=; b=Sm/ykLlxZOk9McMGN0gIThs3FzyGsMdYDA6qOtnv9mr/w/PRjfEHY9SeKXbDRFDNo+JqzS 7VD+bRIgX9s4njWYbV01DBbG64JE2pks8M5xg2ofxi5SwRmFHpVY6HxeF+D7RdjK9I/Znm wJ6x9dAhK7SODKJ044KMtHhGlpdsmawJxm75tpgpwCHZ1Ubm6AgnC+dlD1g4wNtTF0/s6m C02aW2Bqd2bo2Nt8naiM+1bFgU9+EAmARfuHYWUBesgqs6b3zm+0kmt/OEoRRTNaqEp3dh Pu2QcgcnjwECeYFIJ7bbqns/y/sZ1V+wZJKOb882lsOAeRgl1ofHYsFWigIl0w== Date: Wed, 19 Feb 2025 03:29:30 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250219022930.GJ4991@pb2> References: <20250217184149.921456-1-tatum.rashad@gmail.com> <20250217184149.921456-2-tatum.rashad@gmail.com> MIME-Version: 1.0 In-Reply-To: <20250217184149.921456-2-tatum.rashad@gmail.com> X-GND-State: clean X-GND-Score: -70 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeifedtudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdlfedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeijedruddufeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeijedruddufedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH v2 2/2] libavformat/rtsp: Free memory allocated for temporary variables while processing sdp info 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="===============9138242168628071766==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============9138242168628071766== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZoHN2ETHmhCsIglQ" Content-Disposition: inline --ZoHN2ETHmhCsIglQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 17, 2025 at 01:41:30PM -0500, Rashad Tatum wrote: > --- > libavformat/rtsp.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c > index 0c65f8d1a4..da733938bc 100644 > --- a/libavformat/rtsp.c > +++ b/libavformat/rtsp.c > @@ -478,6 +478,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPPar= seState *s1, > sdp_ip_str); > =20 > } > + av_freep(sdp_ip_str); > break; > case 's': > av_dict_set(&s->metadata, "title", p, 0); > @@ -702,6 +703,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPPar= seState *s1, > } > } > } > + av_freep(dest_addr); > } else { > if (rt->server_type =3D=3D RTSP_SERVER_WMS) > ff_wms_parse_sdp_a_line(s, p); Segmentation fault (core dumped) av_freep takes a pointer to a pointer [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Give a rich man 100$ and he will turn it into 1000$. Give a poor man 1000$ and he will spend it. --ZoHN2ETHmhCsIglQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZ7VCBwAKCRBhHseHBAsP q6vWAJ94JMMkh27DQldO9ORladXjQU/z2ACgmNEX6uYt6sDPd41D4VMPiNhN6E8= =srGf -----END PGP SIGNATURE----- --ZoHN2ETHmhCsIglQ-- --===============9138242168628071766== 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". --===============9138242168628071766==--