| 132 | |
| 133 | |
| 134 | void luaE_freethread (lua_State *L, lua_State *L1) { |
| 135 | luaF_close(L1, L1->stack); /* close all upvalues for this thread */ |
| 136 | lua_assert(L1->openupval == NULL); |
| 137 | luai_userstatefree(L1); |
| 138 | freestack(L, L1); |
| 139 | luaM_freemem(L, fromstate(L1), state_size(lua_State)); |
| 140 | } |
| 141 | |
| 142 | |
| 143 | LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { |
no test coverage detected