1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

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.
This commit is contained in:
Andy Wingo 2018-09-02 21:35:54 +02:00
parent e9b44c00fd
commit 162e313311

View file

@ -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 ();