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

Fix incorrect memory pool deallocation while using vg_read for files.

We create a separate pool "lvm2 vg_read" for vg_read and we don't use
cmd->mem anymore.
This commit is contained in:
Peter Rajnoha 2010-06-01 12:08:50 +00:00
parent 1a3b58545b
commit 03023d3965
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.67 -
===============================
Fix incorrect memory pool deallocation while using vg_read for files.
Add --type parameter description to the lvcreate man page.
Replace strncmp kernel version number checks with proper ones.
Avoid selecting names under /dev/block if there is an alternative.

View File

@ -814,7 +814,7 @@ static struct volume_group *_vg_read_file_name(struct format_instance *fid,
* check that it contains the correct volume group.
*/
if (vgname && strcmp(vgname, vg->name)) {
dm_pool_free(fid->fmt->cmd->mem, vg);
dm_pool_destroy(vg->vgmem);
log_error("'%s' does not contain volume group '%s'.",
read_path, vgname);
return NULL;