From 162e31331161de598e7b262b2f2cf47a3631f3b5 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sun, 2 Sep 2018 21:35:54 +0200 Subject: [PATCH] Fix a memory leak in JIT * libguile/jit.c (compute_mcode): Fix memory leak. Ultimate fix will be to use arena allocation, but that will come later. --- libguile/jit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libguile/jit.c b/libguile/jit.c index 12c9cd3aa..469f85bf9 100644 --- a/libguile/jit.c +++ b/libguile/jit.c @@ -4495,6 +4495,7 @@ compute_mcode (scm_thread *thread, uint32_t *entry_ip, entry_mcode - data->mcode); } + free (j->op_attrs); free (j->labels); j->labels = NULL; jit_clear_state ();