зеркало из https://github.com/github/ruby.git
Add missing free on cc_entries
Looks like an oversight inb9007b6c54
and7ec2359374
.
This commit is contained in:
Родитель
33b78b89ac
Коммит
83705c42ce
|
@ -427,6 +427,9 @@ free_unit(struct rb_mjit_unit *unit)
|
|||
unit->iseq->body->jit_func = (mjit_func_t)NOT_COMPILED_JIT_ISEQ_FUNC;
|
||||
unit->iseq->body->jit_unit = NULL;
|
||||
}
|
||||
if (unit->cc_entries) {
|
||||
free(unit->cc_entries);
|
||||
}
|
||||
if (unit->handle && dlclose(unit->handle)) { // handle is NULL if it's in queue
|
||||
mjit_warning("failed to close handle for u%d: %s", unit->id, dlerror());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче