%% Ilya Zakharevich <ilya@math.ohio-state.edu> writes: iz> OK, now it is us who look utterly confused... I was pretty sure iz> that documentation of putenv() states that it free()s the old iz> value, No, it doesn't. For one thing, there's no requirement that the memory you pass to it be on the heap. iz> but most probably it just leaks... If you pass it an alloc'ed block and don't save a pointer to it yourself to free later, if you know when "later" is, yes, it does. putenv() is a crappy function. -- ------------------------------------------------------------------------------- Paul D. Smith <psmith@baynetworks.com> Network Management Development "Please remain calm...I may be mad, but I am a professional." --Mad Scientist ------------------------------------------------------------------------------- These are my opinions---Nortel Networks takes no responsibility for them.