From e4bcad3d1e3c9d177713cce9f066a20ec8c2cc0c Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 26 Jul 2017 13:11:57 +0200 Subject: [PATCH] [Fix] Lua_http: freeing --- src/lua/lua_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 40c79624c..a655b8ec0 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -135,8 +135,8 @@ static void lua_http_maybe_free (struct lua_http_cbdata *cbd) { if (cbd->session) { - rspamd_session_remove_event (cbd->session, lua_http_fin, cbd); rspamd_session_watcher_pop (cbd->session, cbd->w); + rspamd_session_remove_event (cbd->session, lua_http_fin, cbd); } else { lua_http_fin (cbd); -- 2.39.5