diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-05 12:42:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-05 13:39:12 +0000 |
commit | dc48ac9143e0306ebca2eb780540363b0a9bbef4 (patch) | |
tree | e9311c06b9de2d51308050c4a3e7087fcdcb3cca /src/plugins/regexp.c | |
parent | 28cbb2b4cbeded908f4fb0efb0adbc99c6b74356 (diff) | |
download | rspamd-dc48ac9143e0306ebca2eb780540363b0a9bbef4.tar.gz rspamd-dc48ac9143e0306ebca2eb780540363b0a9bbef4.zip |
Fix leaks in lua error paths
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r-- | src/plugins/regexp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 00c7ec470..7273d87d7 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -343,8 +343,11 @@ rspamd_lua_call_expression_func (struct ucl_lua_funcdata *lua_data, if (lua_pcall (L, nargs + 1, 1, 0) != 0) { msg_info_task ("%s: call to lua function failed: %s", symbol, lua_tostring (L, -1)); + lua_pop (L, 1); + return FALSE; } + pop++; if (lua_type (L, -1) == LUA_TNUMBER) { |