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:
parent
c4ddb31abf
commit
2b176f9034
@ -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.
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user