From 6535f55f1a0cd3415a2594a0f945a1613c3edd4d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Nov 2004 18:43:44 +0000 Subject: Update. 2004-11-22 Jakub Jelinek * nscd/nscd_getai (__nscd_getai): Avoid memory and file descriptor leaks. * sysdeps/posix/getaddrinfo.c (gaih_inet): Free air. * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (__SI_MAX_SIZE): * dirent/dirent.h: Add nonnull attributes. --- ChangeLog | 10 ++++++++-- sysdeps/posix/getaddrinfo.c | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index df080a6561..f6df6f9d97 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +2004-11-22 Jakub Jelinek + + * nscd/nscd_getai (__nscd_getai): Avoid memory and file descriptor + leaks. + * sysdeps/posix/getaddrinfo.c (gaih_inet): Free air. + 2004-11-15 Maciej W. Rozycki - * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (__SI_MAX_SIZE): + * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (__SI_MAX_SIZE): Define appropriately based on __WORDSIZE. [struct siginfo] (__pad0): Add for explicit padding. @@ -9,7 +15,7 @@ 2004-11-22 Ulrich Drepper - * dirent/dirent.h: Add __nonnull attributes. + * dirent/dirent.h: Add nonnull attributes. * dlfcn/dlfcn.h: Likewise. 2004-11-20 Jakub Jelinek 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); -- cgit 1.4.1