MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaF_freeupval

Function luaF_freeupval

deps/lua/src/lfunc.c:89–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88
89void luaF_freeupval (lua_State *L, UpVal *uv) {
90 if (uv->v != &uv->u.value) /* is it open? */
91 unlinkupval(uv); /* remove from open list */
92 luaM_free(L, uv); /* free upvalue */
93}
94
95
96void luaF_close (lua_State *L, StkId level) {

Callers 2

luaF_closeFunction · 0.85
freeobjFunction · 0.85

Calls 1

unlinkupvalFunction · 0.85

Tested by

no test coverage detected