]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Cleanup inactive redis connections
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 19 Nov 2016 10:50:22 +0000 (10:50 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 19 Nov 2016 10:50:22 +0000 (10:50 +0000)
src/libserver/redis_pool.c

index 74ca8811f57a8f4ae549c82ea61fe8ab01003714..fa9573f391436bb366fa803f7d08688939fe0add 100644 (file)
@@ -117,6 +117,7 @@ rspamd_redis_pool_conn_dtor (struct rspamd_redis_pool_connection *conn)
 
                if (conn->ctx) {
                        g_hash_table_remove (conn->elt->pool->elts_by_ctx, conn->ctx);
+                       redisAsyncFree (conn->ctx);
                }
 
                g_queue_unlink (conn->elt->inactive, conn->entry);