summaryrefslogtreecommitdiff
path: root/src/lj_state.c
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-29 04:36:35 +0100
committerMike Pall <mike>2009-12-29 04:36:35 +0100
commit24429ed1f5c52258700e2e16c898c1dd9b8c4203 (patch)
tree984fd197d92070fe6e04edbe237444ee44b5b0c5 /src/lj_state.c
parent81c9f5de89a03396ca80cd84e7c68552df7fd9f4 (diff)
downloadluajit2-24429ed1f5c52258700e2e16c898c1dd9b8c4203.tar.gz
Fix alloc/free sizes of internal GCRef arrays.
Diffstat (limited to 'src/lj_state.c')
-rw-r--r--src/lj_state.c2
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)
lua_assert(gcref(g->gc.root) == obj2gco(L));
lua_assert(g->strnum == 0);
lj_trace_freestate(g);
- lj_mem_freevec(g, g->strhash, g->strmask+1, GCstr *);
+ lj_mem_freevec(g, g->strhash, g->strmask+1, GCRef);
lj_str_freebuf(g, &g->tmpbuf);
lj_mem_freevec(g, L->stack, L->stacksize, TValue);
lua_assert(g->gc.total == sizeof(GG_State));