Fix memory leak in lruFast.c during Tdeinit().
This commit is contained in:
parent
79d1512a5e
commit
32fae6795b
1 changed files with 1 additions and 0 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue