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: zhengda
Subject: Re: The patch of glibc which allows the user to override the pfinet server
Date: Tue, 12 Aug 2008 13:33:46 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Samuel Thibault wrote:
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.
so I used 'free' of the Hurd version. It wasted me so long time.
Now it seems to work. Thank you.

Zheng Da





reply via email to

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