From: Vsevolod Stakhov Date: Sat, 19 Nov 2016 10:50:22 +0000 (+0000) Subject: [CritFix] Cleanup inactive redis connections X-Git-Tag: 1.4.0~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=02c70c485ebb62660b0da2000f180d52e7e8bbb4;p=rspamd.git [CritFix] Cleanup inactive redis connections --- diff --git a/src/libserver/redis_pool.c b/src/libserver/redis_pool.c index 74ca8811f..fa9573f39 100644 --- a/src/libserver/redis_pool.c +++ b/src/libserver/redis_pool.c @@ -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);