mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
fix empty mem pool leak
of "config" when LVM_SYSTEM_DIR=""
This commit is contained in:
parent
fe05828e7e
commit
c43f2f8ae0
@ -966,8 +966,8 @@ static void _destroy_config(struct cmd_context *cmd)
|
|||||||
/* CONFIG_FILE/CONFIG_MERGED_FILES */
|
/* CONFIG_FILE/CONFIG_MERGED_FILES */
|
||||||
if ((cft = remove_config_tree_by_source(cmd, CONFIG_MERGED_FILES)))
|
if ((cft = remove_config_tree_by_source(cmd, CONFIG_MERGED_FILES)))
|
||||||
config_destroy(cft);
|
config_destroy(cft);
|
||||||
else
|
else if ((cft = remove_config_tree_by_source(cmd, CONFIG_FILE)))
|
||||||
remove_config_tree_by_source(cmd, CONFIG_FILE);
|
config_destroy(cft);
|
||||||
|
|
||||||
dm_list_iterate_items(cfl, &cmd->config_files)
|
dm_list_iterate_items(cfl, &cmd->config_files)
|
||||||
config_destroy(cfl->cft);
|
config_destroy(cfl->cft);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user