master - toolcontext: do not set cmd->initialized_connections = 0 on destroy_toolcontext
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b3997469b56eb54f78fc84a8d9fde285ffd53c56 Commit: b3997469b56eb54f78fc84a8d9fde285ffd53c56 Parent: 519c309952245a0d6221a3297399a310acdb8144 Author: Peter Rajnoha <[email protected]> AuthorDate: Mon Aug 3 16:17:09 2015 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Mon Aug 3 16:17:17 2015 +0200
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 files changed, 0 insertions(+), 1 deletions(-)
lib/commands/toolcontext.c +0 -1
@@ -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 ();