Fix alloc/free sizes of internal GCRef arrays.

This commit is contained in:
Mike Pall
2009-12-29 04:36:35 +01:00
parent 81c9f5de89
commit 24429ed1f5
5 changed files with 5 additions and 5 deletions

View File

@@ -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));