From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 24 07:19:40 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54CED16A4CE for ; Thu, 24 Feb 2005 07:19:40 +0000 (GMT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90E8F43D49 for ; Thu, 24 Feb 2005 07:19:39 +0000 (GMT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 191D9530C; Thu, 24 Feb 2005 08:19:38 +0100 (CET) Received: from xps.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 0B8465308; Thu, 24 Feb 2005 08:19:10 +0100 (CET) Received: by xps.des.no (Postfix, from userid 1001) id 78B7B33C3E; Thu, 24 Feb 2005 08:19:10 +0100 (CET) To: =?iso-8859-1?q?Se=E1n_C=2E_Farley?= References: <20050222173013.B26342@thor.farley.org> <863bvnmyrt.fsf@xps.des.no> <20050223140733.T35108@thor.farley.org> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Thu, 24 Feb 2005 08:19:10 +0100 In-Reply-To: <20050223140733.T35108@thor.farley.org> 19:09:01 -0600 (CST)") Message-ID: <86ekf65ssx.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on flood.des.no X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL,FORGED_RCVD_HELO autolearn=disabled version=3.0.1 cc: freebsd-hackers@freebsd.org Subject: Re: setenv/unsetenv's known memory leak X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 07:19:40 -0000 Se=E1n C. Farley writes: > How does this version look? Needlessly complicated. I'd just copy the entire environment into malloc()ed space the first time setenv() or putenv() is called. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no