]> sourceware.org Git - lvm2.git/commitdiff
Fix pool_empty so it really does empty the memory pool.
authorAlasdair Kergon <agk@redhat.com>
Thu, 16 Sep 2004 20:09:55 +0000 (20:09 +0000)
committerAlasdair Kergon <agk@redhat.com>
Thu, 16 Sep 2004 20:09:55 +0000 (20:09 +0000)
WHATS_NEW
lib/mm/pool-fast.c

index f605e5efc3e2e6f939973e14ec24db694529c3c9..49efce1c2d80a1f2a5f818f76a059e723a0fead1 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.00.24 - 
 =====================================
+  Fix pool_empty so it really does empty the memory pool.
   Rename old segtypes files to segtype.
   Some fixes to memory debugging code.
   Exclude internal commands formats & segtypes from install.
index 319c67af127baf2b7886553d39c61cb22b6c3962..5a7564264e44022535b149a72f535c6afda3676f 100644 (file)
@@ -109,8 +109,8 @@ void pool_empty(struct pool *p)
        for (c = p->chunk; c && c->prev; c = c->prev)
                ;
 
-       if (p->chunk)
-               pool_free(p, (char *) (p->chunk + 1));
+       if (c)
+               pool_free(p, (char *) (c + 1));
 }
 
 void pool_free(struct pool *p, void *ptr)
This page took 0.042726 seconds and 5 git commands to generate.