summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-29 13:15:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-29 13:15:21 +0100
commit8fbd19806560ed1af1d4264ba8a40e4d2abba0ff (patch)
tree4dbb06af119f081ca5902207c147c2398e9644b9 /src/lua/lua_redis.c
parent852ec8126ca249debc59c5038ac58d5cbe96338f (diff)
downloadrspamd-8fbd19806560ed1af1d4264ba8a40e4d2abba0ff.tar.gz
rspamd-8fbd19806560ed1af1d4264ba8a40e4d2abba0ff.zip
[Minor] Refactor destroy -> free
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r--src/lua/lua_redis.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index ea9e5ba0e..7c568066f 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -707,7 +707,7 @@ rspamd_lua_redis_prepare_connection (lua_State *L, gint *pcbref)
rspamd_inet_address_get_port (addr->addr));
if (ip) {
- rspamd_inet_address_destroy (ip);
+ rspamd_inet_address_free (ip);
}
if (ud->ctx == NULL || ud->ctx->err) {
@@ -731,7 +731,7 @@ rspamd_lua_redis_prepare_connection (lua_State *L, gint *pcbref)
}
if (ip) {
- rspamd_inet_address_destroy (ip);
+ rspamd_inet_address_free (ip);
}
return NULL;
@@ -931,7 +931,7 @@ lua_redis_make_request_sync (lua_State *L)
rspamd_inet_address_get_port (addr->addr), tv);
if (ip) {
- rspamd_inet_address_destroy (ip);
+ rspamd_inet_address_free (ip);
}
if (ctx == NULL || ctx->err) {
@@ -972,7 +972,7 @@ lua_redis_make_request_sync (lua_State *L)
}
else {
if (ip) {
- rspamd_inet_address_destroy (ip);
+ rspamd_inet_address_free (ip);
}
msg_err ("bad arguments for redis request");
lua_pushboolean (L, FALSE);
@@ -1091,7 +1091,7 @@ lua_redis_connect_sync (lua_State *L)
rspamd_inet_address_get_port (addr->addr), tv);
if (ip) {
- rspamd_inet_address_destroy (ip);
+ rspamd_inet_address_free (ip);
}
if (ctx->d.sync == NULL || ctx->d.sync->err) {
@@ -1116,7 +1116,7 @@ lua_redis_connect_sync (lua_State *L)
}
else {
if (ip) {
- rspamd_inet_address_destroy (ip);
+ rspamd_inet_address_free (ip);
}
lua_pushboolean (L, FALSE);