[BusyBox] fix sh memory leak

Matt Kraai kraai at alumni.carnegiemellon.edu
Wed Dec 13 02:09:29 UTC 2000


> On Tue Dec 12, 2000 at 05:17:37PM -0800, Matt Kraai wrote:
> > Rather than setting the buffer to the empty string before each
> > call (and forgetting some, like my patch for sh.c :), why not just
> > drop it into my_getpwuid and my_getgrgid and be done with it?
> > A patch is attached (which also moves a bunch of buffers from the
> > stack to the heap and fixes bugs in logname and whoami).

Whoops.  I meant it moves buffers from the heap to the stack.  Talk in
correct order I do.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20001212/fcc6752c/attachment.pgp 


More information about the busybox mailing list