We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad3942a commit 1de95e9Copy full SHA for 1de95e9
lstate.c
@@ -271,6 +271,7 @@ static void close_state (lua_State *L) {
271
if (!completestate(g)) /* closing a partially built state? */
272
luaC_freeallobjects(L); /* just collect its objects */
273
else { /* closing a fully built state */
274
+ L->ci = &L->base_ci; /* unwind CallInfo list */
275
luaD_closeprotected(L, 1, LUA_OK); /* close all upvalues */
276
luaC_freeallobjects(L); /* collect all objects */
277
luai_userstateclose(L);
0 commit comments