mirror of
https://github.com/nmap/nmap.git
synced 2026-10-24 12:53:49 +00:00
Fix memory leak: clean up alt requests
This commit is contained in:
parent
0896ed3f5d
commit
5c46b3b9f7
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue