diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-29 13:15:21 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-29 13:15:21 +0100 |
commit | 8fbd19806560ed1af1d4264ba8a40e4d2abba0ff (patch) | |
tree | 4dbb06af119f081ca5902207c147c2398e9644b9 /src/controller.c | |
parent | 852ec8126ca249debc59c5038ac58d5cbe96338f (diff) | |
download | rspamd-8fbd19806560ed1af1d4264ba8a40e4d2abba0ff.tar.gz rspamd-8fbd19806560ed1af1d4264ba8a40e4d2abba0ff.zip |
[Minor] Refactor destroy -> free
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller.c b/src/controller.c index 9b18a1945..ad24e5034 100644 --- a/src/controller.c +++ b/src/controller.c @@ -425,7 +425,7 @@ rspamd_controller_check_forwarded (struct rspamd_controller_session *session, ret = -1; } - rspamd_inet_address_destroy (addr); + rspamd_inet_address_free (addr); } else { msg_warn_session ("cannot parse forwarded IP: %T", hdr); @@ -455,7 +455,7 @@ rspamd_controller_check_forwarded (struct rspamd_controller_session *session, ret = -1; } - rspamd_inet_address_destroy (addr); + rspamd_inet_address_free (addr); } else { msg_warn_session ("cannot parse real IP: %T", hdr); @@ -2953,7 +2953,7 @@ rspamd_controller_finish_handler (struct rspamd_http_connection_entry *conn_ent) } session->wrk->nconns --; - rspamd_inet_address_destroy (session->from_addr); + rspamd_inet_address_free (session->from_addr); REF_RELEASE (session->cfg); if (session->pool) { |