Date: Thu, 06 Aug 1998 01:35:04 -0700 From: Mike Smith <mike@smith.net.au> To: Mark Huizer <freebsd@xaa.iae.nl> Cc: freebsd-current@FreeBSD.ORG Subject: Re: memory leaks in libc Message-ID: <199808060835.BAA01491@antipodes.cdrom.com> In-Reply-To: Your message of "Thu, 06 Aug 1998 10:08:59 %2B0200." <19980806100859.A312@xaa.iae.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi, a nice user of ours pointed me to the fact that various functions > like setenv, putenv etc leak memory like crazy. To mention a very > simple example: > > main(){while(1){setenv("A","AA",1);setenv("A","A",1);}} > > while consume all memory within short periods of time (see setenv.c for > the reason). > > Is this wellknown? I think it is bad, and would like to fix it Not sure, agreed, and please do. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com 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?199808060835.BAA01491>