about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-11-22 18:43:44 +0000
committerUlrich Drepper <drepper@redhat.com>2004-11-22 18:43:44 +0000
commit6535f55f1a0cd3415a2594a0f945a1613c3edd4d (patch)
treedcd32c924ef9fe84af14368277caadda3a75112a /sysdeps/posix
parent8dd719970a2c282fa7b1fbf485f2744557abc676 (diff)
downloadglibc-6535f55f1a0cd3415a2594a0f945a1613c3edd4d.tar.gz
glibc-6535f55f1a0cd3415a2594a0f945a1613c3edd4d.tar.xz
glibc-6535f55f1a0cd3415a2594a0f945a1613c3edd4d.zip
Update.
2004-11-22  Jakub Jelinek  <jakub@redhat.com>

	* 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.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/getaddrinfo.c2
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);