diff options
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index d85664ef0..a92c1fe8f 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -978,6 +978,12 @@ lua_http_request (lua_State *L) } if (ev_base == NULL) { + g_free (auth); + rspamd_http_message_unref (msg); + if (body) { + rspamd_fstring_free (body); + } + return luaL_error (L, "Bad params to rspamd_http:request(): ev_base isn't passed"); } |