mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Reset environment after creating new script thread. (This may fix problems with
some memory not being reclaimed.)
This commit is contained in:
parent
b9633ed69b
commit
c08922c411
1 changed files with 1 additions and 0 deletions
|
|
@ -227,6 +227,7 @@ do
|
|||
-- same Lua thread the action and rule functions will execute in.
|
||||
local co = create(main);
|
||||
local s, value, rule_return = resume(co, ...);
|
||||
setfenv(file_closure, _G); -- reset the environment
|
||||
if s and value ~= unique_value then
|
||||
print_debug(1,
|
||||
"A thread for %s yielded unexpectedly in the file or %s function:\n%s\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue