| 5915 | |
| 5916 | |
| 5917 | void luaF_freeupval (lua_State *L, UpVal *uv) { |
| 5918 | if (uv->v != &uv->u.value) /* is it open? */ |
| 5919 | unlinkupval(uv); /* remove from open list */ |
| 5920 | luaM_free(L, uv); /* free upvalue */ |
| 5921 | } |
| 5922 | |
| 5923 | |
| 5924 | void luaF_close (lua_State *L, StkId level) { |
no test coverage detected