diff options
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 07a4cc286..5f2dd2416 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -132,6 +132,7 @@ lua_http_push_error (struct lua_http_cbdata *cbd, const char *err) if (lua_pcall (cbd->L, 1, 0, 0) != 0) { msg_info ("callback call failed: %s", lua_tostring (cbd->L, -1)); + lua_pop (cbd->L, 1); } } @@ -167,6 +168,7 @@ lua_http_finish_handler (struct rspamd_http_connection *conn, } if (lua_pcall (cbd->L, 4, 0, 0) != 0) { msg_info ("callback call failed: %s", lua_tostring (cbd->L, -1)); + lua_pop (cbd->L, 1); } lua_http_maybe_free (cbd); |