mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00: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:
parent
41560a9312
commit
61bac1a9d2
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user