1
0
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:
dmiller
2024-05-01 22:19:33 +00:00
parent d70f66a761
commit 4ad5e7ca22

View File

@@ -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: