From 61bac1a9d2ab80ebcbc51484722e6ea43414bec7 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 20 Dec 2023 16:14:33 +0100 Subject: 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 --- nss/getaddrinfo.c | 1 - 1 file changed, 1 deletion(-) (limited to 'nss') 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) { -- cgit 1.4.1