aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-08 18:46:09 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-08 18:46:09 +0000
commit6b0f624216ca5c0311a62ae117f56d7cbcb4c840 (patch)
treed7d682fa5b9f3fde6e58e3e8aa07ebd395c79c46 /src
parent2d6b01959049355b4a75b9e2d667b6c885a17312 (diff)
downloadrspamd-6b0f624216ca5c0311a62ae117f56d7cbcb4c840.tar.gz
rspamd-6b0f624216ca5c0311a62ae117f56d7cbcb4c840.zip
Fight with hiredis API
Diffstat (limited to 'src')
-rw-r--r--src/libstat/backends/redis_backend.c3
1 files changed, 3 insertions, 0 deletions
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