summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2015-08-03 16:17:09 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2015-08-03 16:17:17 +0200
commitb3997469b56eb54f78fc84a8d9fde285ffd53c56 (patch)
tree900b088dab8e41e7431a9284e02a52b9bc666ecb
parent519c309952245a0d6221a3297399a310acdb8144 (diff)
downloadlvm2-b3997469b56eb54f78fc84a8d9fde285ffd53c56.tar.gz
toolcontext: do not set cmd->initialized_connections = 0 on destroy_toolcontext
The whole cmd context is freed completely in destroy_toolcontext, so do not write to any of dead cmd variables.
-rw-r--r--lib/commands/toolcontext.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index f4c0c9507..11affee6c 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -2179,7 +2179,6 @@ void destroy_toolcontext(struct cmd_context *cmd)
lvmetad_release_token();
lvmetad_disconnect();
lvmpolld_disconnect();
- cmd->initialized.connections = 0;
release_log_memory();
activation_exit();