aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_http.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-09 16:43:40 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-09 16:43:40 +0000
commitc2cbcd8d98ae8e1b8d1ef06bc6dc53f77ac3bd16 (patch)
treee8742046ad3eac446a64576f9bfd605e583e9ee5 /src/lua/lua_http.c
parentdcbe3146b882a731e1cd82025607bd423bb82024 (diff)
downloadrspamd-c2cbcd8d98ae8e1b8d1ef06bc6dc53f77ac3bd16.tar.gz
rspamd-c2cbcd8d98ae8e1b8d1ef06bc6dc53f77ac3bd16.zip
Fix some issues found by coverity
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r--src/lua/lua_http.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 5f2dd2416..816565869 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -419,10 +419,6 @@ lua_http_request (lua_State *L)
msg_err ("http request has bad params");
lua_pushboolean (L, FALSE);
- if (mime_type) {
- g_free (mime_type);
- }
-
return 1;
}
@@ -434,6 +430,7 @@ lua_http_request (lua_State *L)
cbd->mime_type = mime_type;
msec_to_tv (timeout, &cbd->tv);
cbd->fd = -1;
+
if (session) {
cbd->session = session;
rspamd_session_add_event (session,