1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix pool_empty so it really does empty the memory pool.

This commit is contained in:
Alasdair Kergon 2004-09-16 20:09:55 +00:00
parent c4ddb31abf
commit 2b176f9034
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.00.24 - Version 2.00.24 -
===================================== =====================================
Fix pool_empty so it really does empty the memory pool.
Rename old segtypes files to segtype. Rename old segtypes files to segtype.
Some fixes to memory debugging code. Some fixes to memory debugging code.
Exclude internal commands formats & segtypes from install. Exclude internal commands formats & segtypes from install.

View File

@ -109,8 +109,8 @@ void pool_empty(struct pool *p)
for (c = p->chunk; c && c->prev; c = c->prev) for (c = p->chunk; c && c->prev; c = c->prev)
; ;
if (p->chunk) if (c)
pool_free(p, (char *) (p->chunk + 1)); pool_free(p, (char *) (c + 1));
} }
void pool_free(struct pool *p, void *ptr) void pool_free(struct pool *p, void *ptr)