You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
895 B
24 lines
895 B
8 months ago
|
commit 61bac1a9d2ab80ebcbc51484722e6ea43414bec7
|
||
|
Author: Florian Weimer <fweimer@redhat.com>
|
||
|
Date: Wed Dec 20 16:14:33 2023 +0100
|
||
|
|
||
|
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>
|
||
|
|
||
|
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
|
||
|
index e9f47aea358a3351..321a6679d46494a3 100644
|
||
|
--- a/sysdeps/posix/getaddrinfo.c
|
||
|
+++ b/sysdeps/posix/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)
|
||
|
{
|