aboutsummaryrefslogtreecommitdiffstats
path: root/extras/filters/filter-rspamd/rspamd.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/filters/filter-rspamd/rspamd.c')
-rw-r--r--extras/filters/filter-rspamd/rspamd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/extras/filters/filter-rspamd/rspamd.c b/extras/filters/filter-rspamd/rspamd.c
index 82ee39f..53a1e5d 100644
--- a/extras/filters/filter-rspamd/rspamd.c
+++ b/extras/filters/filter-rspamd/rspamd.c
@@ -82,6 +82,14 @@ transaction_destructor(void *ctx)
tx->from = NULL;
tx->rcpt = NULL;
+ if (tx->rspamd.body) {
+ free(tx->rspamd.body);
+ tx->rspamd.body = NULL;
+ }
+ if (tx->rspamd.subject) {
+ free(tx->rspamd.subject);
+ tx->rspamd.subject = NULL;
+ }
}