On Thursday 23 October 2008, Jamie Lokier wrote: > execvp() is ok, even though that > calls malloc() (in at least one Glibc version I looked at).
yes, most of the exec calls need memory in order to construct an argv[] based on the function arguments. in glibc, i imagine that the memory leaked is permanently lost (although ive never looked at the glibc implementation). in uClibc we minimize the leakage by re-using it in the next call to exec that needs memory. thanks for the other tidbits -mike
signature.asc
Description: This is a digitally signed message part.