From: Vsevolod Stakhov Date: Sat, 29 Jan 2022 13:49:34 +0000 (+0000) Subject: [Minor] malloc -> g_malloc X-Git-Tag: 3.2~76 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f4aec0c82012de2f9ff7f9ca6f43855b575cd07;p=thirdparty%2Frspamd.git [Minor] malloc -> g_malloc --- diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 0ff8695d31..c95f2dd0d8 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -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) {