From d371db63c8ec7d0971876a27d4d3c09fd4523510 Mon Sep 17 00:00:00 2001 From: Luke Gorrie Date: Wed, 29 Nov 2017 13:19:12 +0000 Subject: [PATCH] lj_state.c: Fix dealloc to match --- src/lj_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lj_state.c b/src/lj_state.c index e612693fce..661f393714 100644 --- a/src/lj_state.c +++ b/src/lj_state.c @@ -170,7 +170,7 @@ static void close_state(lua_State *L) lj_mem_freevec(g, tvref(L->stack), L->stacksize, TValue); lj_mem_free(g, J->snapmapbuf, J->sizesnapmap); lj_mem_free(g, J->snapbuf, J->sizesnap); - lj_mem_free(g, J->irbuf-REF_BIAS, 65536*sizeof(IRIns)); + lj_mem_free(g, J->irbuf, 65536*sizeof(IRIns)); lua_assert(g->gc.total == sizeof(GG_State)); #ifndef LUAJIT_USE_SYSMALLOC if (g->allocf == lj_alloc_f)