CVS update: samba/source/nsswitch
tpot at samba.org
Sun Nov 2 23:26:59 GMT 2003
On Sun, Nov 02, 2003 at 11:51:36PM +0000, Andrew Bartlett wrote:
> My manpage for putenv() indicates (I think...) that a copy of the
> string is *not* used, and as such the string should remain in memory
> as long as the environment variable is set. Your code calls free()
> right after it is set.
> The thing that has me confused is why we need to malloc anything here
> at all. Why not just use two constant strings, firm in the knowledge
> that they never need to be allocated or free()ed.
Hey that's a good idea - thanks. (-:
More information about the samba-technical