From 0d736aca7e3842032f6c1a6495a289588af0bf45 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 7 Jan 2021 15:53:59 +0000 Subject: [Fix] Plug GList * leak in redis pool --- src/libserver/redis_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3