diff options
author | Mike Pall <mike> | 2009-12-29 04:36:35 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2009-12-29 04:36:35 +0100 |
commit | 24429ed1f5c52258700e2e16c898c1dd9b8c4203 (patch) | |
tree | 984fd197d92070fe6e04edbe237444ee44b5b0c5 /src/lj_state.c | |
parent | 81c9f5de89a03396ca80cd84e7c68552df7fd9f4 (diff) | |
download | luajit-24429ed1f5c52258700e2e16c898c1dd9b8c4203.tar.gz luajit-24429ed1f5c52258700e2e16c898c1dd9b8c4203.tar.bz2 luajit-24429ed1f5c52258700e2e16c898c1dd9b8c4203.zip |
Fix alloc/free sizes of internal GCRef arrays.
Diffstat (limited to 'src/lj_state.c')
-rw-r--r-- | src/lj_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_state.c b/src/lj_state.c index 57c3dded..ef8f65ea 100644 --- a/src/lj_state.c +++ b/src/lj_state.c | |||
@@ -150,7 +150,7 @@ static void close_state(lua_State *L) | |||
150 | lua_assert(gcref(g->gc.root) == obj2gco(L)); | 150 | lua_assert(gcref(g->gc.root) == obj2gco(L)); |
151 | lua_assert(g->strnum == 0); | 151 | lua_assert(g->strnum == 0); |
152 | lj_trace_freestate(g); | 152 | lj_trace_freestate(g); |
153 | lj_mem_freevec(g, g->strhash, g->strmask+1, GCstr *); | 153 | lj_mem_freevec(g, g->strhash, g->strmask+1, GCRef); |
154 | lj_str_freebuf(g, &g->tmpbuf); | 154 | lj_str_freebuf(g, &g->tmpbuf); |
155 | lj_mem_freevec(g, L->stack, L->stacksize, TValue); | 155 | lj_mem_freevec(g, L->stack, L->stacksize, TValue); |
156 | lua_assert(g->gc.total == sizeof(GG_State)); | 156 | lua_assert(g->gc.total == sizeof(GG_State)); |