ruby-changes:60204
From: Takashi <ko1@a...>
Date: Wed, 26 Feb 2020 17:39:10 +0900 (JST)
Subject: [ruby-changes:60204] 83705c42ce (master): Add missing free on cc_entries
https://git.ruby-lang.org/ruby.git/commit/?id=83705c42ce From 83705c42cedd9489596859827d7201c59feccebd Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Wed, 26 Feb 2020 00:37:35 -0800 Subject: Add missing free on cc_entries Looks like an oversight in b9007b6c548f91e88fd3f2ffa23de740431fa969 and 7ec23593746c8ccabd6c005cc34dde77d564c6c9. diff --git a/mjit_worker.c b/mjit_worker.c index 09f07d8..ec9d27c 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -427,6 +427,9 @@ free_unit(struct rb_mjit_unit *unit) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L427 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()); } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/