1
0
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:
stoiko
2007-12-08 17:23:38 +00:00
parent 005a84fc59
commit c30adcd5bf

View File

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