]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Plug GList * leak in redis pool
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 7 Jan 2021 15:53:59 +0000 (15:53 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 7 Jan 2021 15:53:59 +0000 (15:53 +0000)
src/libserver/redis_pool.c

index 7e835013ce25629cf2bdaa63e92423c7c7e6b869..da97c601d7c30e37d2e531f02458f19e42e4743b 100644 (file)
@@ -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;
                }