commit 0d736ac: [Fix] Plug GList * leak in redis pool

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jan 7 15:56:08 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-01-07 15:53:59 +0000
URL: https://github.com/rspamd/rspamd/commit/0d736aca7e3842032f6c1a6495a289588af0bf45 (HEAD -> master)

[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;
 		}
 


More information about the Commits mailing list