summaryrefslogtreecommitdiffstats
path: root/src/misc/hash/hashFlt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/hash/hashFlt.h')
-rw-r--r--src/misc/hash/hashFlt.h5
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 );
}
}