aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-03-23 14:07:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-03-23 14:07:53 -0300
commit5008e3d7d1aea4fe669d4cdbc614856e18298e4a (patch)
tree300c98428a23f55d58b45793a1688c9610e27aa3
parent21bc05c920e6289d6d6e1de5c3c8f0eb64e60fb2 (diff)
downloadlua-5008e3d7d1aea4fe669d4cdbc614856e18298e4a.tar.gz
lua-5008e3d7d1aea4fe669d4cdbc614856e18298e4a.tar.bz2
lua-5008e3d7d1aea4fe669d4cdbc614856e18298e4a.zip
new states must use controlled malloc, too
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index c12a4922..84286123 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.2 2004/02/16 19:09:52 roberto Exp roberto $ 2** $Id: ltests.c,v 2.3 2004/03/15 21:04:54 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -686,7 +686,7 @@ static int d2s (lua_State *L) {
686 686
687 687
688static int newstate (lua_State *L) { 688static int newstate (lua_State *L) {
689 lua_State *L1 = lua_open(); 689 lua_State *L1 = lua_newstate(debug_realloc, &memcontrol);
690 if (L1) { 690 if (L1) {
691 lua_userstateopen(L1); /* init lock */ 691 lua_userstateopen(L1); /* init lock */
692 lua_pushinteger(L, (unsigned long)L1); 692 lua_pushinteger(L, (unsigned long)L1);