diff options
author | Andy Wingo <wingo@pobox.com> | 2018-09-02 21:35:54 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-09-02 21:35:54 +0200 |
commit | 162e31331161de598e7b262b2f2cf47a3631f3b5 (patch) | |
tree | 4f61b6ed2d44a6b203680337f6daf1f895f16360 /libguile/jit.c | |
parent | e9b44c00fdad6a7c36ff8cf070cbaf771e6b70ad (diff) | |
download | guile-162e31331161de598e7b262b2f2cf47a3631f3b5.tar.gz |
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.
Diffstat (limited to 'libguile/jit.c')
-rw-r--r-- | libguile/jit.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 (); |