mirror of
https://github.com/nmap/nmap.git
synced 2026-09-02 00:11:04 +00:00
perform lua-garbage collection everytime a script finishes excecution
(should solve the endless loops of NSE)
This commit is contained in:
parent
005a84fc59
commit
c30adcd5bf
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue