mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvmetad: use dm_config_destroy to free pvmeta
Release pvmeta handler with proper dm_config_destroy() function. TODO: Fix primary fault for this internal error. Signed-off-by: mcsontos@redhat.com
This commit is contained in:
parent
17be6d5210
commit
ff5c1c576c
2
lib/cache/lvmetad.c
vendored
2
lib/cache/lvmetad.c
vendored
@ -726,7 +726,7 @@ int lvmetad_pv_found(const struct id *pvid, struct device *device, const struct
|
||||
} else {
|
||||
if (handler) {
|
||||
log_error(INTERNAL_ERROR "Handler needs existing VG.");
|
||||
dm_free(pvmeta);
|
||||
dm_config_destroy(pvmeta);
|
||||
return 0;
|
||||
}
|
||||
/* There are no MDAs on this PV. */
|
||||
|
Loading…
Reference in New Issue
Block a user