diff --git a/kernel/unstable/patch.cc b/kernel/unstable/patch.cc index 0597924e5..fcb81db6f 100644 --- a/kernel/unstable/patch.cc +++ b/kernel/unstable/patch.cc @@ -94,6 +94,7 @@ void Patch::gc(Cell* old_cell) { } } } + old_cell->module->remove(old_cell); for (auto input : inputs) gc(input); }