From owner-freebsd-current@FreeBSD.ORG Sun Oct 15 09:41:43 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4370516A416; Sun, 15 Oct 2006 09:41:43 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail09.syd.optusnet.com.au (mail09.syd.optusnet.com.au [211.29.132.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E6DF43D5A; Sun, 15 Oct 2006 09:41:41 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c58-107-94-118.belrs4.nsw.optusnet.com.au [58.107.94.118]) by mail09.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k9F9fOtO025130 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 15 Oct 2006 19:41:25 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id k9F9CiEY005788; Sun, 15 Oct 2006 19:12:44 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id k9F9CiIO005787; Sun, 15 Oct 2006 19:12:44 +1000 (EST) (envelope-from peter) Date: Sun, 15 Oct 2006 19:12:44 +1000 From: Peter Jeremy To: John Baldwin Message-ID: <20061015091244.GC1239@turion.vk2pj.dyndns.org> References: <20061006200320.T1063@baba.farley.org> <200610101001.04286.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w7PDEPdKQumQfZlR" Content-Disposition: inline In-Reply-To: <200610101001.04286.jhb@freebsd.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-current@freebsd.org, "Sean C. Farley" Subject: Re: Fix for memory leak in setenv/unsetenv X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2006 09:41:43 -0000 --w7PDEPdKQumQfZlR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 2006-Oct-10 10:01:03 -0400, John Baldwin wrote: >I know for one app at my last job we had a problem with this with TZ, and = so >we explicitly space padded the timezone name out to a fixed-size each time >to avoid the leak. Funny, it was a problem with TZ that led me to raise the PR initially. I think I came up with the same work-around. It's a pity that there's no truely re-entrant interface to the ctime(3) family (ie, one that allows you to specify the timezone as a parameter). --=20 Peter Jeremy --w7PDEPdKQumQfZlR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFMfuM/opHv/APuIcRAi6cAJ4kBoI1rQsfgd93hXubB/izXgU7pgCfcndx ua4ICvouYUkl2Sn/6n1DCKw= =1pP+ -----END PGP SIGNATURE----- --w7PDEPdKQumQfZlR--