diff options
author | gilles <gilles@poolp.org> | 2016-06-25 17:13:17 +0200 |
---|---|---|
committer | gilles <gilles@poolp.org> | 2016-06-25 17:13:17 +0200 |
commit | 181002ba1fafe1aa050c5a6a1164f0dbeaefda7d (patch) | |
tree | 986a6aefb0ea3de1d91d0cac5413eaa40f9e517c | |
parent | when releasing a transaction and all its resources, actually release the transaction... (diff) | |
download | OpenSMTPD-extras-181002ba1fafe1aa050c5a6a1164f0dbeaefda7d.tar.xz OpenSMTPD-extras-181002ba1fafe1aa050c5a6a1164f0dbeaefda7d.zip |
cosmethic change
-rw-r--r-- | extras/filters/filter-rspamd/rspamd.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/extras/filters/filter-rspamd/rspamd.c b/extras/filters/filter-rspamd/rspamd.c index 667b0ef..f58ee35 100644 --- a/extras/filters/filter-rspamd/rspamd.c +++ b/extras/filters/filter-rspamd/rspamd.c @@ -80,23 +80,20 @@ transaction_destructor(void *ctx) if (tx->from) free(tx->from); + if (tx->rspamd.body) + free(tx->rspamd.body); + if (tx->rspamd.subject) + free(tx->rspamd.subject); tx->eom = 0; tx->error = 0; tx->from = NULL; + tx->rspamd.body = NULL; + tx->rspamd.subject = NULL; while (dict_poproot(&tx->rcpts, &data)) ; - if (tx->rspamd.body) { - free(tx->rspamd.body); - tx->rspamd.body = NULL; - } - if (tx->rspamd.subject) { - free(tx->rspamd.subject); - tx->rspamd.subject = NULL; - } - free(tx); } |