aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 2f5031d5..ff5d0376 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.15 2004/10/06 18:34:16 roberto Exp roberto $ 2** $Id: lstate.c,v 2.16 2004/11/19 15:52:40 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -155,7 +155,7 @@ void luaE_freethread (lua_State *L, lua_State *L1) {
155 luaF_close(L1, L1->stack); /* close all upvalues for this thread */ 155 luaF_close(L1, L1->stack); /* close all upvalues for this thread */
156 lua_assert(L1->openupval == NULL); 156 lua_assert(L1->openupval == NULL);
157 freestack(L, L1); 157 freestack(L, L1);
158 luaM_free(L, fromstate(L1), state_size(lua_State)); 158 luaM_freemem(L, fromstate(L1), state_size(lua_State));
159} 159}
160 160
161 161