Actually delete the netlist when VL_LEAK_CHECKS

This commit is contained in:
Geza Lore 2023-01-01 12:49:28 +00:00
parent fd52f7f479
commit 6ab47f799b
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ void V3Global::boot() {
}
void V3Global::clear() {
#ifdef VL_LEAK_CHECK
#ifdef VL_LEAK_CHECKS
if (m_rootp) VL_DO_CLEAR(m_rootp->deleteTree(), m_rootp = nullptr);
#endif
}