aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-30 12:12:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-09-30 12:12:17 +0100
commit03165efaa67359fdcabb6206ed02cba36498be5a (patch)
tree50038339a41fafec68ca80e547c27824b94e3b16 /src/lua
parentac77a153fea7cfc809ce6a546f2eb4fccf3cbd53 (diff)
downloadrspamd-03165efaa67359fdcabb6206ed02cba36498be5a.tar.gz
rspamd-03165efaa67359fdcabb6206ed02cba36498be5a.zip
[Minor] Try to fix some memory inconsistencies
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_redis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index 402190351..455afd9b6 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -219,6 +219,7 @@ lua_redis_fin (void *arg)
event_del (&sp_ud->timeout);
msg_debug ("finished redis query %p from session %p", sp_ud, ctx);
sp_ud->replied = TRUE;
+ sp_ud->c->terminated = TRUE;
REDIS_RELEASE (ctx);
}