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 7479bb33b..bfc9eea35 100644
--- a/lib/commands/toolcontext.c
+++ b/lib/commands/toolcontext.c
@@ -2251,6 +2251,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);