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