summaryrefslogtreecommitdiff
path: root/lib/mempool.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-10-02 10:55:19 +0000
committerMartin Mares <mj@ucw.cz>1999-10-02 10:55:19 +0000
commit507cb9e58b947ad8c6ad1c73706a08010d90f4cc (patch)
tree77845715c28a533033353b7705f0ceefa12d5154 /lib/mempool.c
parentac40c888c21c72ae7f6c3d329dd2ba5417eec009 (diff)
Don't forget to free large blocks.
Diffstat (limited to 'lib/mempool.c')
-rw-r--r--lib/mempool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mempool.c b/lib/mempool.c
index 9319859d..b2c8862c 100644
--- a/lib/mempool.c
+++ b/lib/mempool.c
@@ -143,6 +143,11 @@ lp_free(resource *r)
c = d->next;
xfree(d);
}
+ for(d=m->first_large; d; d = c)
+ {
+ c = d->next;
+ xfree(d);
+ }
}
void