Subject: strerror(3) memory leak ?
To: NetBSD current <>
From: Nicolas Joly <>
List: current-users
Date: 03/26/2006 23:34:00

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,

Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.