MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaF_freeupval

Function luaF_freeupval

Source/Misc/lua/src/lua.c:5917–5921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5915
5916
5917void luaF_freeupval (lua_State *L, UpVal *uv) {
5918if (uv->v != &uv->u.value) /* is it open? */
5919unlinkupval(uv); /* remove from open list */
5920luaM_free(L, uv); /* free upvalue */
5921}
5922
5923
5924void 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