MCPcopy Create free account
hub / github.com/DFHack/dfhack / freeLclosure

Function freeLclosure

depends/lua/src/lgc.c:686–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

684
685
686static void freeLclosure (lua_State *L, LClosure *cl) {
687 int i;
688 for (i = 0; i < cl->nupvalues; i++) {
689 UpVal *uv = cl->upvals[i];
690 if (uv)
691 luaC_upvdeccount(L, uv);
692 }
693 luaM_freemem(L, cl, sizeLclosure(cl->nupvalues));
694}
695
696
697static void freeobj (lua_State *L, GCObject *o) {

Callers 1

freeobjFunction · 0.85

Calls 1

luaC_upvdeccountFunction · 0.85

Tested by

no test coverage detected