mirror of
https://github.com/nmap/nmap.git
synced 2026-01-04 21:59:02 +00:00
perform lua-garbage collection everytime a script finishes excecution
(should solve the endless loops of NSE)
This commit is contained in:
@@ -299,6 +299,7 @@ int process_mainloop(lua_State* l) {
|
||||
}
|
||||
|
||||
SCRIPT_ENGINE_TRY(process_finalize(l, current.registry_idx));
|
||||
SCRIPT_ENGINE_TRY(lua_gc(l, LUA_GCCOLLECT,NULL));
|
||||
} else {
|
||||
// this script returned because of an error
|
||||
// print the failing reason if the verbose level is high enough
|
||||
|
||||
Reference in New Issue
Block a user