[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/03: Fix a memory leak in JIT
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/03: Fix a memory leak in JIT |
Date: |
Mon, 3 Sep 2018 12:32:12 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 162e31331161de598e7b262b2f2cf47a3631f3b5
Author: Andy Wingo <address@hidden>
Date: Sun Sep 2 21:35:54 2018 +0200
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 12c9cd3..469f85b 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 ();