aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-01-07 15:53:59 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-01-07 15:53:59 +0000
commit0d736aca7e3842032f6c1a6495a289588af0bf45 (patch)
tree4828d251f1b36a1678638ac3e26ce369c143ea6a
parent1322915c15b99c174cb3fba8c7467b1bbac83ced (diff)
downloadrspamd-0d736aca7e3842032f6c1a6495a289588af0bf45.tar.gz
rspamd-0d736aca7e3842032f6c1a6495a289588af0bf45.zip
[Fix] Plug GList * leak in redis pool
-rw-r--r--src/libserver/redis_pool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/redis_pool.c b/src/libserver/redis_pool.c
index 7e835013c..da97c601d 100644
--- a/src/libserver/redis_pool.c
+++ b/src/libserver/redis_pool.c
@@ -212,7 +212,7 @@ rspamd_redis_conn_timeout (EV_P_ ev_timer *w, int revents)
conn->ctx, conn->ref.refcount);
/* Prevent reusing */
if (conn->entry) {
- g_queue_unlink (conn->elt->inactive, conn->entry);
+ g_queue_delete_link (conn->elt->inactive, conn->entry);
conn->entry = NULL;
}