Garbage Collection
Lua performs automatic memory management. This means that you have to worry neither about allocating memory for new objects nor about freeing it when the objects are no longer needed. Lua manages memory automatically by running a garbage collector from time to time to collect all dead objects (that is, objects that are no longer accessible from Lua). All memory used by Lua is subject to automatic management: tables, userdata, functions, strings, etc.
When working with very large data elements it may be necessary to force an immediate garbage collection cycle after dereferencing a variable to prevent nzLua from running out of memory.
bigtable = null
collectgarbage()