mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
systemid: Use correct mempool.
libmem is necessary when this ends up in cmd->system_id.
This commit is contained in:
parent
80f4b4b803
commit
87941ccd17
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user