summaryrefslogtreecommitdiffstats
path: root/src/base
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2010-12-02 19:30:19 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2010-12-02 19:30:19 -0800
commitc9a625248607a090116cfdede47a5a80c227cb56 (patch)
treeb21c982902dd2174e87b9a150866411b06cd72d4 /src/base
parentc7bb89d1b962f879b4b3f26535c82657fd9bd756 (diff)
downloadabc-c9a625248607a090116cfdede47a5a80c227cb56.tar.gz
abc-c9a625248607a090116cfdede47a5a80c227cb56.tar.bz2
abc-c9a625248607a090116cfdede47a5a80c227cb56.zip
Fixing memory leak in LTL property handling code
Diffstat (limited to 'src/base')
-rw-r--r--src/base/abc/abcNtk.c1
-rw-r--r--src/base/main/mainFrame.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/base/abc/abcNtk.c b/src/base/abc/abcNtk.c
index a4bdaa0f..166d79e6 100644
--- a/src/base/abc/abcNtk.c
+++ b/src/base/abc/abcNtk.c
@@ -1039,6 +1039,7 @@ void Abc_NtkDelete( Abc_Ntk_t * pNtk )
ABC_FREE( pNtk->pLutTimes );
if ( pNtk->vOnehots )
Vec_VecFree( (Vec_Vec_t *)pNtk->vOnehots );
+ Vec_PtrFreeP( &pNtk->vLtlProperties );
ABC_FREE( pNtk );
}
diff --git a/src/base/main/mainFrame.c b/src/base/main/mainFrame.c
index a600ae3b..bd3cf4d2 100644
--- a/src/base/main/mainFrame.c
+++ b/src/base/main/mainFrame.c
@@ -175,6 +175,7 @@ void Abc_FrameDeallocate( Abc_Frame_t * p )
ABC_FREE( pTemp );
Vec_PtrFree( p->vPlugInComBinPairs );
}
+ Vec_PtrFreeP( &p->vLTLProperties_global );
Abc_FrameDeleteAllNetworks( p );
ABC_FREE( p->pCex );
ABC_FREE( p );