Fix for memory leak in setenv/unsetenv

Peter Jeremy peterjeremy at optushome.com.au
Sun Oct 15 02:41:43 PDT 2006


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

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20061015/7e12c377/attachment.pgp


More information about the freebsd-current mailing list