summaryrefslogtreecommitdiff
path: root/src/lj_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_state.c')
-rw-r--r--src/lj_state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_state.c b/src/lj_state.c
index 3305fd18..e690a5d3 100644
--- a/src/lj_state.c
+++ b/src/lj_state.c
@@ -143,6 +143,7 @@ static void close_state(lua_State *L)
143 global_State *g = G(L); 143 global_State *g = G(L);
144#ifndef LUAJIT_USE_SYSMALLOC 144#ifndef LUAJIT_USE_SYSMALLOC
145 if (g->allocf == lj_alloc_f) { 145 if (g->allocf == lj_alloc_f) {
146 lj_trace_freestate(g);
146 lj_alloc_destroy(g->allocd); 147 lj_alloc_destroy(g->allocd);
147 } else 148 } else
148#endif 149#endif