summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-10-02 12:55:19 +0200
committerMartin Mares <mj@ucw.cz>1999-10-02 12:55:19 +0200
commit507cb9e58b947ad8c6ad1c73706a08010d90f4cc (patch)
tree77845715c28a533033353b7705f0ceefa12d5154 /lib
parentac40c888c21c72ae7f6c3d329dd2ba5417eec009 (diff)
downloadbird-507cb9e58b947ad8c6ad1c73706a08010d90f4cc.tar
bird-507cb9e58b947ad8c6ad1c73706a08010d90f4cc.zip
Don't forget to free large blocks.
Diffstat (limited to 'lib')
-rw-r--r--lib/mempool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/mempool.c b/lib/mempool.c
index 9319859..b2c8862 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