diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-10 19:26:20 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-10 19:26:20 +0000 |
commit | 44b9961895e11117b8500ae0d070046670f998e6 (patch) | |
tree | a032fcc40896a56dced485a91dfc547eb99e037a /src/libserver/milter.c | |
parent | 8b1cf85652664b562a70060fc30e62b90823daee (diff) | |
download | rspamd-44b9961895e11117b8500ae0d070046670f998e6.tar.gz rspamd-44b9961895e11117b8500ae0d070046670f998e6.zip |
[Fix] Plug memory leak when setting email addresses from Lua
+ Optimize emails addr structure and API
MFH: rspamd-1.6
Diffstat (limited to 'src/libserver/milter.c')
-rw-r--r-- | src/libserver/milter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/milter.c b/src/libserver/milter.c index 2cced96ec..b809b89b6 100644 --- a/src/libserver/milter.c +++ b/src/libserver/milter.c @@ -117,7 +117,7 @@ rspamd_milter_session_reset (struct rspamd_milter_session *session, if (session->rcpts) { PTR_ARRAY_FOREACH (session->rcpts, i, cur) { - rspamd_email_address_unref (cur); + rspamd_email_address_free (cur); } g_ptr_array_free (session->rcpts, TRUE); @@ -125,7 +125,7 @@ rspamd_milter_session_reset (struct rspamd_milter_session *session, } if (session->from) { - rspamd_email_address_unref (session->from); + rspamd_email_address_free (session->from); session->from = NULL; } |