projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41560a9
)
nss: Remove unused allocation from get_nscd_addresses in getaddrinfo
author
Florian Weimer
<fweimer@redhat.com>
Wed, 20 Dec 2023 15:14:33 +0000
(16:14 +0100)
committer
Florian Weimer
<fweimer@redhat.com>
Wed, 20 Dec 2023 15:14:33 +0000
(16:14 +0100)
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>
nss/getaddrinfo.c
patch
|
blob
|
history
diff --git
a/nss/getaddrinfo.c
b/nss/getaddrinfo.c
index
5311249
..
ce3af93
100644
(file)
--- 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)
{