aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index a6ef82a3..92ccbf9b 100644
--- a/lstate.c
+++ b/lstate.c
@@ -313,7 +313,7 @@ LUA_API lua_State *lua_newthread (lua_State *L) {
313 313
314void luaE_freethread (lua_State *L, lua_State *L1) { 314void luaE_freethread (lua_State *L, lua_State *L1) {
315 LX *l = fromstate(L1); 315 LX *l = fromstate(L1);
316 luaF_close(L1, L1->stack, NOCLOSINGMETH); /* close all upvalues */ 316 luaF_close(L1, L1->stack, NOCLOSINGMETH, 0); /* close all upvalues */
317 lua_assert(L1->openupval == NULL); 317 lua_assert(L1->openupval == NULL);
318 luai_userstatefree(L, L1); 318 luai_userstatefree(L, L1);
319 freestack(L1); 319 freestack(L1);