summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2015-03-18 23:25:30 +0000
committerAlasdair G Kergon <agk@redhat.com>2015-03-18 23:25:30 +0000
commit87941ccd1706ac9818f0f4828cade1d4cfae622d (patch)
tree0676245dbafc4664dddfd3360a06536f31607a93
parent80f4b4b8039a88dfa2648a9b5bb5e16f41b81f87 (diff)
downloadlvm2-87941ccd1706ac9818f0f4828cade1d4cfae622d.tar.gz
systemid: Use correct mempool.
libmem is necessary when this ends up in cmd->system_id.
-rw-r--r--lib/commands/toolcontext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 54dcf86db..fb0e94dc5 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -67,7 +67,7 @@ const char *system_id_from_string(struct cmd_context *cmd, const char *str)
return "";
}
- if (!(system_id = dm_pool_zalloc(cmd->mem, strlen(str) + 1))) {
+ if (!(system_id = dm_pool_zalloc(cmd->libmem, strlen(str) + 1))) {
log_warn("WARNING: Failed to allocate system ID.");
return NULL;
}