mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-12 23:00:22 +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:
parent
e9b44c00fd
commit
162e313311
1 changed files with 1 additions and 0 deletions
|
@ -4495,6 +4495,7 @@ compute_mcode (scm_thread *thread, uint32_t *entry_ip,
|
||||||
entry_mcode - data->mcode);
|
entry_mcode - data->mcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free (j->op_attrs);
|
||||||
free (j->labels);
|
free (j->labels);
|
||||||
j->labels = NULL;
|
j->labels = NULL;
|
||||||
jit_clear_state ();
|
jit_clear_state ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue