1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

Properly destroy toolcontext.

(fixes previous commit)
This commit is contained in:
Milan Broz 2009-06-17 20:54:20 +00:00
parent 8742213863
commit be0938ad3c

View File

@ -517,10 +517,12 @@ static void _destroy_tag_configs(struct cmd_context *cmd)
struct config_tree_list *cfl;
dm_list_iterate_items(cfl, &cmd->config_files) {
if (cfl->cft == cmd->cft)
cmd->cft = NULL;
destroy_config_tree(cfl->cft);
}
if (cmd->cft && cmd->cft->root) {
if (cmd->cft) {
destroy_config_tree(cmd->cft);
cmd->cft = NULL;
}