Subject: Re: strerror(3) memory leak ?
To: None <current-users@netbsd.org>
From: Rui Paulo <rpaulo@fnop.net>
List: current-users
Date: 03/27/2006 00:35:56
Nicolas Joly <njoly@pasteur.fr> writes:

> 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 ?

I think this is a real leak and is related to NLS/i18n.

-- 
  Rui Paulo			<rpaulo@{NetBSD{,-PT}.org,fnop.net}>