1
0
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:
batrick
2010-07-10 06:03:15 +00:00
parent b9633ed69b
commit c08922c411

View File

@@ -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",