summaryrefslogtreecommitdiff
path: root/lib/commands
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2020-05-13 17:19:41 -0500
committerDavid Teigland <teigland@redhat.com>2020-05-13 17:20:16 -0500
commit5c095400de2f84511726cc8178800d19657b814d (patch)
tree18d075669524e6b5b17a0618e151369b31fcc3a2 /lib/commands
parent2f29765e7fd1135d070310683cf486f07d041c81 (diff)
downloadlvm2-5c095400de2f84511726cc8178800d19657b814d.tar.gz
hints: free hint structs on exit
and free on a couple error paths.
Diffstat (limited to 'lib/commands')
-rw-r--r--lib/commands/toolcontext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 2bd7fabd2..63b6811e5 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -1598,6 +1598,7 @@ struct cmd_context *create_toolcontext(unsigned is_clvmd,
dm_list_init(&cmd->formats);
dm_list_init(&cmd->segtypes);
dm_list_init(&cmd->tags);
+ dm_list_init(&cmd->hints);
dm_list_init(&cmd->config_files);
label_init();