summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_ip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_ip.c')
-rw-r--r--src/lua/lua_ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_ip.c b/src/lua/lua_ip.c
index 6499a657d..a604685aa 100644
--- a/src/lua/lua_ip.c
+++ b/src/lua/lua_ip.c
@@ -404,7 +404,7 @@ lua_ip_destroy (lua_State *L)
if (ip) {
if (ip->addr) {
- rspamd_inet_address_destroy (ip->addr);
+ rspamd_inet_address_free (ip->addr);
}
g_slice_free1 (sizeof (struct rspamd_lua_ip), ip);
}