aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel/smtp_received_parser.rl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ragel/smtp_received_parser.rl')
-rw-r--r--src/ragel/smtp_received_parser.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ragel/smtp_received_parser.rl b/src/ragel/smtp_received_parser.rl
index b22f34f03..87cb73e88 100644
--- a/src/ragel/smtp_received_parser.rl
+++ b/src/ragel/smtp_received_parser.rl
@@ -300,7 +300,7 @@ rspamd_smtp_recieved_parse (struct rspamd_task *task, const char *data, size_t l
if (rh->real_ip) {
if (rspamd_parse_inet_address (&rh->addr, rh->real_ip, strlen (rh->real_ip))) {
rspamd_mempool_add_destructor (task->task_pool,
- (rspamd_mempool_destruct_t)rspamd_inet_address_destroy, rh->addr);
+ (rspamd_mempool_destruct_t)rspamd_inet_address_free, rh->addr);
}
}