Fix compiler warning in GCC 6.

Signed-off-by: Wilson Snyder <[email protected]>
This commit is contained in:
David Horton
2016-07-09 04:09:34 -04:00
committed by Wilson Snyder
parent 20ed1ada03
commit 31c9e26e2e
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1226,7 +1226,7 @@ VerilatedModule::VerilatedModule(const char* namep)
}
VerilatedModule::~VerilatedModule() {
if (m_namep) free((void*)m_namep); m_namep=NULL;
if (m_namep) { free((void*)m_namep); m_namep=NULL; }
}
//======================================================================