summaryrefslogtreecommitdiffstats
path: root/lib/format1
diff options
context:
space:
mode:
Diffstat (limited to 'lib/format1')
-rw-r--r--lib/format1/format1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/format1/format1.c b/lib/format1/format1.c
index d98da691..4a91aac7 100644
--- a/lib/format1/format1.c
+++ b/lib/format1/format1.c
@@ -508,10 +508,9 @@ static struct format_instance *_format1_create_instance(const struct format_type
return_NULL;
/* Define a NULL metadata area */
- if (!(mda = dm_pool_zalloc(fmt->cmd->mem, sizeof(*mda)))) {
+ if (!(mda = dm_pool_zalloc(fid->mem, sizeof(*mda)))) {
log_error("Unable to allocate metadata area structure "
"for lvm1 format");
- dm_pool_free(fmt->cmd->mem, fid);
goto bad;
}