Skip to content

Commit 65d7d70

Browse files
committed
driver: move IdString collection to yosys_shutdown
1 parent abc78f0 commit 65d7d70

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

kernel/driver.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ extern "C" {
158158

159159
void yosys_atexit()
160160
{
161-
RTLIL::OwningIdString::collect_garbage(false);
162161
#if defined(YOSYS_ENABLE_READLINE) || defined(YOSYS_ENABLE_EDITLINE)
163162
if (!yosys_history_file.empty()) {
164163
#if defined(YOSYS_ENABLE_READLINE)

kernel/yosys.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ void yosys_shutdown()
260260

261261
delete yosys_design;
262262
yosys_design = NULL;
263+
RTLIL::OwningIdString::collect_garbage();
263264

264265
for (auto f : log_files)
265266
if (f != stderr)

0 commit comments

Comments
 (0)