mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Fix pool_empty so it really does empty the memory pool.
This commit is contained in:
parent
12e5b0681b
commit
3bf5189d86
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user