diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2017-09-03 13:08:10 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2017-09-03 13:08:10 -0700 |
commit | 2f95a58c0177590dff43702c88a3d10a59235116 (patch) | |
tree | 56e437e178d5a29e9d5003bf264c34ee58a33c8e /src/opt | |
parent | 5e2bfe36ff267e4407b2a6b8126de622d5892395 (diff) | |
download | abc-2f95a58c0177590dff43702c88a3d10a59235116.tar.gz abc-2f95a58c0177590dff43702c88a3d10a59235116.tar.bz2 abc-2f95a58c0177590dff43702c88a3d10a59235116.zip |
Fixed a memory leak in 'fxch'.
Diffstat (limited to 'src/opt')
-rw-r--r-- | src/opt/fxch/FxchSCHashTable.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opt/fxch/FxchSCHashTable.c b/src/opt/fxch/FxchSCHashTable.c index 80753677..28f925e1 100644 --- a/src/opt/fxch/FxchSCHashTable.c +++ b/src/opt/fxch/FxchSCHashTable.c @@ -102,6 +102,9 @@ Fxch_SCHashTable_t* Fxch_SCHashTableCreate( Fxch_Man_t* pFxchMan, void Fxch_SCHashTableDelete( Fxch_SCHashTable_t* pSCHashTable ) { + unsigned i; + for ( i = 0; i <= pSCHashTable->SizeMask; i++ ) + ABC_FREE( pSCHashTable->pBins[i].vSCData ); Vec_IntErase( &pSCHashTable->vSubCube0 ); Vec_IntErase( &pSCHashTable->vSubCube1 ); ABC_FREE( pSCHashTable->pBins ); |