Fix memory leak in lruFast.c during Tdeinit().

This commit is contained in:
Sears Russell 2008-12-04 23:07:07 +00:00
parent 79d1512a5e
commit 32fae6795b

View file

@ -52,6 +52,7 @@ static void deinit(struct replacementPolicy * r) {
// responsibility to free the void *'s passed into us. // responsibility to free the void *'s passed into us.
//LH_ENTRY(destroy)(l->hash); //LH_ENTRY(destroy)(l->hash);
LL_ENTRY(destroy)(l->lru); LL_ENTRY(destroy)(l->lru);
free(l);
free(r); free(r);
} }
replacementPolicy * lruFastInit( replacementPolicy * lruFastInit(