Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 2006 19:12:44 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        John Baldwin <jhb@freebsd.org>
Cc:        freebsd-current@freebsd.org, "Sean C. Farley" <sean-freebsd@farley.org>
Subject:   Re: Fix for memory leak in setenv/unsetenv
Message-ID:  <20061015091244.GC1239@turion.vk2pj.dyndns.org>
In-Reply-To: <200610101001.04286.jhb@freebsd.org>
References:  <20061006200320.T1063@baba.farley.org> <200610101001.04286.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061015091244.GC1239>