aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index e82ca950..563ec35e 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.22 1999/12/07 11:42:54 roberto Exp roberto $ 2** $Id: lstate.c,v 1.23 1999/12/21 18:04:41 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*/
@@ -105,8 +105,8 @@ void lua_close (lua_State *L) {
105 LUA_ASSERT(L, L->Cstack.base == L->top, "C2Lua not empty"); 105 LUA_ASSERT(L, L->Cstack.base == L->top, "C2Lua not empty");
106 luaM_free(L, L); 106 luaM_free(L, L);
107 if (L == lua_state) { 107 if (L == lua_state) {
108 LUA_ASSERT(L, numblocks == 0, "memory leak!"); 108 LUA_ASSERT(L, memdebug_numblocks == 0, "memory leak!");
109 LUA_ASSERT(L, totalmem == 0,"memory leak!"); 109 LUA_ASSERT(L, memdebug_total == 0,"memory leak!");
110 lua_state = NULL; 110 lua_state = NULL;
111 } 111 }
112} 112}