bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The patch of glibc which allows the user to override the pfinet serv


From: Samuel Thibault
Subject: Re: The patch of glibc which allows the user to override the pfinet server
Date: Tue, 12 Aug 2008 10:18:47 +0100
User-agent: Mutt/1.5.12-2006-07-14

zhengda, le Sun 10 Aug 2008 19:42:18 +0200, a écrit :
> Samuel Thibault wrote:
> if (domain > max_domain || servers[domain] == MACH_PORT_NULL)
>   {
>     char *name = NULL;
>     char *np = NULL;
> 
>     if (__asprintf (&name, "SOCK_SERV_%d", domain) > 0)
>       {
>         np = getenv (name);
>         free (name);
> gdb shows the error happens here when 'name' is freed.

Oh, I know.  Ierk.
You need to use __free.  I wonder why the Hurd still has its own
malloc/free.

Samuel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]