Subject: strerror(3) memory leak ?
To: NetBSD current <current-users@NetBSD.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: current-users
Date: 03/26/2006 23:34:00
Hi,
While debugging some piece of code, i noticed that the program was
leaking memory ... After some digging, i was able to reproduce it with
this small piece of code :
#include <string.h>
int main() {
char *msg;
while (1) {
msg = strerror(1);
}
return 0; }
Did i missed something, or this is a real leak ?
Thanks in advance,
Regards.
--
Nicolas Joly
Biological Software and Databanks.
Institut Pasteur, Paris.