aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@poolp.org>2016-06-24 17:40:15 +0200
committergilles <gilles@poolp.org>2016-06-24 17:40:15 +0200
commit8e6d7f44163b9ccf83060be5d42af3572aa192ed (patch)
tree890a1eb877358384996b850c27c43990bcd530ac
parentdon't greylist until filter is finished (diff)
downloadOpenSMTPD-extras-8e6d7f44163b9ccf83060be5d42af3572aa192ed.tar.xz
OpenSMTPD-extras-8e6d7f44163b9ccf83060be5d42af3572aa192ed.zip
plug leak
-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;
+ }
}