diff options
Diffstat (limited to 'src/base/abci')
-rw-r--r-- | src/base/abci/abc.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index ae6b369e..35f2f3eb 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -8850,13 +8850,15 @@ int Abc_CommandTest( Abc_Frame_t * pAbc, int argc, char ** argv ) // Aig_SupportSizeTest( pAig ); pRes = Iso_ManTest( pAig, fVerbose ); Aig_ManStop( pAig ); + if ( pRes != NULL ) + { + pNtkRes = Abc_NtkFromAigPhase( pRes ); + Aig_ManStop( pRes ); - pNtkRes = Abc_NtkFromAigPhase( pRes ); - Aig_ManStop( pRes ); - - ABC_FREE( pNtkRes->pName ); - pNtkRes->pName = Extra_UtilStrsav(pNtk->pName); - Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes ); + ABC_FREE( pNtkRes->pName ); + pNtkRes->pName = Extra_UtilStrsav(pNtk->pName); + Abc_FrameReplaceCurrentNetwork( pAbc, pNtkRes ); + } } } |