aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-05-30 22:27:56 +0200
committerJohannes Berg <johannes@sipsolutions.net>2008-05-30 22:27:56 +0200
commit1322d31e70e1bab05113251af140d82706ec5e57 (patch)
treee45cb8389c0f2eda9b92b6f670d7f03a413467c1
parentf05b6348e6927a3f6f127b98772d4b925e957f70 (diff)
downloaddovecot-antispam-1322d31e70e1bab05113251af140d82706ec5e57.tar.gz
dovecot-antispam-1322d31e70e1bab05113251af140d82706ec5e57.tar.xz
dovecot-antispam-1322d31e70e1bab05113251af140d82706ec5e57.zip
1.1 code: free mail reference before rolling back transaction
-rw-r--r--antispam-storage-1.1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/antispam-storage-1.1.c b/antispam-storage-1.1.c
index 31042d7..a273f88 100644
--- a/antispam-storage-1.1.c
+++ b/antispam-storage-1.1.c
@@ -404,11 +404,11 @@ antispam_mailbox_transaction_rollback(struct mailbox_transaction_context *ctx)
struct antispam_mailbox *asbox = ANTISPAM_CONTEXT(ctx->box);
struct antispam_internal_context *ast = ANTISPAM_CONTEXT(ctx);
- asbox->module_ctx.super.transaction_rollback(ctx);
-
if (ast->mail)
mail_free(&ast->mail);
+ asbox->module_ctx.super.transaction_rollback(ctx);
+
antispam_transaction_rollback(&ast->backendctx);
}