diff options
author | gilles <gilles@poolp.org> | 2016-06-24 17:40:15 +0200 |
---|---|---|
committer | gilles <gilles@poolp.org> | 2016-06-24 17:40:15 +0200 |
commit | 8e6d7f44163b9ccf83060be5d42af3572aa192ed (patch) | |
tree | 890a1eb877358384996b850c27c43990bcd530ac | |
parent | don't greylist until filter is finished (diff) | |
download | OpenSMTPD-extras-8e6d7f44163b9ccf83060be5d42af3572aa192ed.tar.xz OpenSMTPD-extras-8e6d7f44163b9ccf83060be5d42af3572aa192ed.zip |
plug leak
-rw-r--r-- | extras/filters/filter-rspamd/rspamd.c | 8 |
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; + } } |