From b3997469b56eb54f78fc84a8d9fde285ffd53c56 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Mon, 3 Aug 2015 16:17:09 +0200 Subject: [PATCH] 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. --- lib/commands/toolcontext.c | 1 - 1 file changed, 1 deletion(-) 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(); -- 2.43.5