mirror of
https://github.com/nmap/nmap.git
synced 2026-09-21 07:38:39 +00:00
Avoid copying script results; store pointers instead.
This commit is contained in:
parent
c3a2faaa7b
commit
f17fa67008
7 changed files with 38 additions and 34 deletions
|
|
@ -126,8 +126,7 @@ Target::~Target() {
|
|||
#ifndef NOLUA
|
||||
for (ScriptResults::iterator it = scriptResults.begin();
|
||||
it != scriptResults.end(); it++) {
|
||||
ScriptResult sr = *it;
|
||||
sr.clear();
|
||||
delete (*it);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue