]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] malloc -> g_malloc
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 29 Jan 2022 13:49:34 +0000 (13:49 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 29 Jan 2022 13:49:34 +0000 (13:49 +0000)
src/lua/lua_http.c

index 0ff8695d31eba1fa6ce96db384b76f07a1cb4f66..c95f2dd0d864c0d6c1cb0a3d4eaff2ed2f76e099 100644 (file)
@@ -1068,7 +1068,7 @@ lua_http_request (lua_State *L)
        const gchar *host = rspamd_http_message_get_http_host (msg, &hostlen);
 
        if (host) {
-               cbd->host = malloc (hostlen + 1);
+               cbd->host = g_malloc (hostlen + 1);
                rspamd_strlcpy (cbd->host, host, hostlen + 1);
 
                if (cbd->flags & RSPAMD_LUA_HTTP_FLAG_KEEP_ALIVE) {