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:
@@ -226,6 +226,12 @@ struct request {
|
|||||||
dns_server *curr_server;
|
dns_server *curr_server;
|
||||||
u16 id;
|
u16 id;
|
||||||
bool alt_req;
|
bool alt_req;
|
||||||
|
~request() {
|
||||||
|
if (alt_req && targ) {
|
||||||
|
delete targ;
|
||||||
|
targ = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*keeps record of a request going through a particular DNS server
|
/*keeps record of a request going through a particular DNS server
|
||||||
|
|||||||
Reference in New Issue
Block a user