1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix memory leak: clean up alt requests

This commit is contained in:
dmiller
2024-05-13 14:31:33 +00:00
parent 0896ed3f5d
commit 5c46b3b9f7

View File

@@ -226,6 +226,12 @@ struct request {
dns_server *curr_server;
u16 id;
bool alt_req;
~request() {
if (alt_req && targ) {
delete targ;
targ = NULL;
}
}
};
/*keeps record of a request going through a particular DNS server