summaryrefslogtreecommitdiff
path: root/lib/commands/toolcontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/commands/toolcontext.c')
-rw-r--r--lib/commands/toolcontext.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
index 4f233f74d..c15b05786 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -2246,6 +2246,9 @@ void destroy_toolcontext(struct cmd_context *cmd)
!cmd->filter->dump(cmd->filter, 1))
stack;
+ if (cmd->ac)
+ dev_async_context_destroy(cmd->ac);
+
archive_exit(cmd);
backup_exit(cmd);
lvmcache_destroy(cmd, 0, 0);