diff options
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r-- | src/libutil/upstream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 67debb017..529d3fcf0 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -226,7 +226,7 @@ rspamd_upstream_addr_elt_dtor (gpointer a) { struct upstream_addr_elt *elt = a; - rspamd_inet_address_destroy (elt->addr); + rspamd_inet_address_free (elt->addr); g_slice_free1 (sizeof (*elt), elt); } @@ -497,7 +497,7 @@ rspamd_upstream_dtor (struct upstream *up) if (up->new_addrs) { LL_FOREACH_SAFE(up->new_addrs, cur, tmp) { /* Here we need to free pointer as well */ - rspamd_inet_address_destroy (cur->addr); + rspamd_inet_address_free (cur->addr); g_free (cur); } } |