diff options
Diffstat (limited to 'sysdeps/posix/getaddrinfo.c')
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index eb45709be1..c9081345ab 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -767,6 +767,8 @@ gaih_inet (const char *name, const struct gaih_service *service, addrs += size; } + free (air); + if (at->family == AF_UNSPEC) return (GAIH_OKIFUNSPEC | -EAI_NONAME); |