aboutsummaryrefslogtreecommitdiff
path: root/nss/getaddrinfo.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-12-20 16:14:33 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-12-20 16:14:33 +0100
commit61bac1a9d2ab80ebcbc51484722e6ea43414bec7 (patch)
treedafef42a794338b922fdb4951d03c413d5df5e8d /nss/getaddrinfo.c
parent41560a9312ce0ec7203480eef8f865076bff9edb (diff)
downloadglibc-61bac1a9d2ab80ebcbc51484722e6ea43414bec7.tar
glibc-61bac1a9d2ab80ebcbc51484722e6ea43414bec7.tar.gz
glibc-61bac1a9d2ab80ebcbc51484722e6ea43414bec7.tar.bz2
glibc-61bac1a9d2ab80ebcbc51484722e6ea43414bec7.zip
nss: Remove unused allocation from get_nscd_addresses in getaddrinfo
No bug because this is not visible if glibc is built with optimization. Otherwise this would be a critical resource leak. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nss/getaddrinfo.c')
-rw-r--r--nss/getaddrinfo.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/nss/getaddrinfo.c b/nss/getaddrinfo.c
index 531124958d..ce3af931b2 100644
--- a/nss/getaddrinfo.c
+++ b/nss/getaddrinfo.c
@@ -514,7 +514,6 @@ get_nscd_addresses (const char *name, const struct addrinfo *req,
int result = 0;
char *addrs = air->addrs;
- struct gaih_addrtuple *addrfree = calloc (air->naddrs, sizeof (*addrfree));
struct gaih_addrtuple *at = calloc (air->naddrs, sizeof (*at));
if (at == NULL)
{