mirror of
https://mirrors.tuna.tsinghua.edu.cn/git/glibc.git
synced 2026-01-12 00:20:19 +08:00
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>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user