Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 1998 23:35:45 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        dg@root.com, narvi@haldjas.folklore.ee
Cc:        bde@zeta.org.au, freebsd-current@FreeBSD.ORG, freebsd@xaa.iae.nl
Subject:   Re: memory leaks in libc
Message-ID:  <199808061335.XAA23389@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>   Perhaps Bruce is suggesting that a seperate array be allocated to keep
>track of whether or not an env pointer was malloced? This would be very
>costly and, IMO, not worth it considering how rarely memory is lost by
>not freeing previously malloced strings.

Erm, this would be quite cheap, considering how rarely the environment is
updated except by programs that want to demonstrate leaks in it.  Most
programs don't even reference putenv() or getenv().  Shells shouldn't
use them because they might be too slow.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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