mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Fix memory leak in nmap_dns.cc: call freeaddrinfo after resolve_all()
This commit is contained in:
@@ -1096,6 +1096,8 @@ static bool system_resolve(DNS::Request &reqt)
|
||||
reqt.ssv.push_back(*(struct sockaddr_storage *)ai->ai_addr);
|
||||
}
|
||||
}
|
||||
if (ai_result != NULL)
|
||||
freeaddrinfo(ai_result);
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user