diff --git a/kernel/driver.cc b/kernel/driver.cc index eae9c5276..792f78b7f 100644 --- a/kernel/driver.cc +++ b/kernel/driver.cc @@ -158,6 +158,7 @@ extern "C" { void yosys_atexit() { + RTLIL::OwningIdString::collect_garbage(false); #if defined(YOSYS_ENABLE_READLINE) || defined(YOSYS_ENABLE_EDITLINE) if (!yosys_history_file.empty()) { #if defined(YOSYS_ENABLE_READLINE)