Skip to content

Commit

Permalink
virtual: Call mailbox_save_context_deinit before freeing context
Browse files Browse the repository at this point in the history
Otherwise dest_mail does not get free'd
  • Loading branch information
cmouse authored and sirainen committed Jul 18, 2017
1 parent a565f19 commit e166212
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/virtual/virtual-save.c
Expand Up @@ -149,5 +149,6 @@ void virtual_save_free(struct mail_save_context *_ctx)
if (ctx->backend_keywords != NULL)
mailbox_keywords_unref(&ctx->backend_keywords);
virtual_save_cancel(_ctx);
mailbox_save_context_deinit(_ctx);
i_free(ctx);
}

0 comments on commit e166212

Please sign in to comment.