From 6b0f624216ca5c0311a62ae117f56d7cbcb4c840 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 8 Jan 2016 18:46:09 +0000 Subject: [PATCH] Fight with hiredis API --- src/libstat/backends/redis_backend.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c index 4813fb88d..683ba0fda 100644 --- a/src/libstat/backends/redis_backend.c +++ b/src/libstat/backends/redis_backend.c @@ -531,6 +531,9 @@ rspamd_redis_learned (redisAsyncContext *c, gpointer r, gpointer priv) rspamd_upstream_fail (rt->selected); rspamd_session_remove_event (task->s, rspamd_redis_fin_learn, rt); } + + redisAsyncFree (rt->redis); + rt->conn_state = RSPAMD_REDIS_DISCONNECTED; } gpointer -- 2.39.5