mirror of
https://github.com/nmap/nmap.git
synced 2026-01-16 19:39:03 +00:00
Reset environment after creating new script thread. (This may fix problems with
some memory not being reclaimed.)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user