From c30adcd5bfdc88af90a9c4ddb012e1dd6feb3c49 Mon Sep 17 00:00:00 2001 From: stoiko Date: Sat, 8 Dec 2007 17:23:38 +0000 Subject: [PATCH] perform lua-garbage collection everytime a script finishes excecution (should solve the endless loops of NSE) --- nse_main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/nse_main.cc b/nse_main.cc index 3334733be..283ec0d0e 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -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