aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-05 12:42:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-05 12:42:43 +0000
commitb35299b4e3a6cf75cfa19783dda35411508d2913 (patch)
treeda78386cf112c62a0bf81fd04f4d243660e24f28 /src/libserver/task.c
parentf29fb4de499b145b29a1cb22b0f7c0f81473ff6b (diff)
downloadrspamd-b35299b4e3a6cf75cfa19783dda35411508d2913.tar.gz
rspamd-b35299b4e3a6cf75cfa19783dda35411508d2913.zip
Fix leaks in lua error paths
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r--src/libserver/task.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 4194ac94c..1220dc4bc 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -1076,6 +1076,7 @@ rspamd_task_write_log (struct rspamd_task *task)
if (lua_pcall (L, 1, 1, 0) != 0) {
msg_err_task ("call to log function failed: %s",
lua_tostring (L, -1));
+ lua_pop (L, 1);
}
else {
lua_str = lua_tolstring (L, -1, &lua_str_len);