diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-01 15:47:55 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-01 15:47:55 -0800 |
commit | d4291dab37a647ac3d8d0f4e91e571bbb4e3553b (patch) | |
tree | 84c00511c7c6b3d21a8521cee25c8034fd5be464 /src/misc/hash/hashFlt.h | |
parent | 624af674a0e7f1a675917afaaf371db6a5588821 (diff) | |
download | abc-d4291dab37a647ac3d8d0f4e91e571bbb4e3553b.tar.gz abc-d4291dab37a647ac3d8d0f4e91e571bbb4e3553b.tar.bz2 abc-d4291dab37a647ac3d8d0f4e91e571bbb4e3553b.zip |
Cumulative changes of the last two weeks.
Diffstat (limited to 'src/misc/hash/hashFlt.h')
-rw-r--r-- | src/misc/hash/hashFlt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/misc/hash/hashFlt.h b/src/misc/hash/hashFlt.h index b4a8fb49..74e8503d 100644 --- a/src/misc/hash/hashFlt.h +++ b/src/misc/hash/hashFlt.h @@ -311,14 +311,15 @@ static inline void Hash_FltRemove( Hash_Flt_t *p, int key ) ***********************************************************************/ static inline void Hash_FltFree( Hash_Flt_t *p ) { int bin; - Hash_Flt_Entry_t *pEntry; + Hash_Flt_Entry_t *pEntry, *pTemp; // free bins for(bin = 0; bin < p->nBins; bin++) { pEntry = p->pArray[bin]; while(pEntry) { + pTemp = pEntry; pEntry = pEntry->pNext; - ABC_FREE( pEntry ); + ABC_FREE( pTemp ); } } |