1
0
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:
Marian Csontos 2012-12-10 14:24:55 +01:00 committed by Zdenek Kabelac
parent 17be6d5210
commit ff5c1c576c

2
lib/cache/lvmetad.c vendored
View File

@ -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. */