commit 4f4aec0: [Minor] malloc -> g_malloc

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Jan 29 13:56:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-01-29 13:49:34 +0000
URL: https://github.com/rspamd/rspamd/commit/4f4aec0c82012de2f9ff7f9ca6f43855b575cd07 (HEAD -> master)

[Minor] malloc -> g_malloc

---
 src/lua/lua_http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 0ff8695d3..c95f2dd0d 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) {


More information about the Commits mailing list