lua_close

LUA

lua_close

Parent Previous Next

lua_close

void lua_close (lua_State *L);

Destroys all objects in the given Lua environment (calls garbage-collection tag methods, if any) and frees all dynamic memory used by that state.Usage is not compulsory, because all resources are released when your program ends.Useful for long-running applications such as daemons or servers.