diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-28 15:14:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-28 15:14:33 +0100 |
commit | b2b9cfa6161a98d5d4d074573f99fdac6cb24556 (patch) | |
tree | 7d531529f1798da141faeb17b0df1b47fc08896a /src/lua/lua_cryptobox.c | |
parent | 4656f5525d110e3951672ad66a29cfb395f7d32f (diff) | |
download | rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.tar.gz rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.zip |
[Minor] Further portion of g_slice elimination
Diffstat (limited to 'src/lua/lua_cryptobox.c')
-rw-r--r-- | src/lua/lua_cryptobox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_cryptobox.c b/src/lua/lua_cryptobox.c index d5be56460..b646b0926 100644 --- a/src/lua/lua_cryptobox.c +++ b/src/lua/lua_cryptobox.c @@ -735,7 +735,7 @@ rspamd_lua_hash_create (const gchar *type) { struct rspamd_lua_cryptobox_hash *h; - h = g_slice_alloc0 (sizeof (*h)); + h = g_malloc0 (sizeof (*h)); if (type) { if (g_ascii_strcasecmp (type, "md5") == 0) { @@ -776,7 +776,7 @@ rspamd_lua_hash_create (const gchar *type) } } - h->h = g_slice_alloc0 (sizeof (*h->h)); + h->h = g_malloc0 (sizeof (*h->h)); rspamd_cryptobox_hash_init (h->h, NULL, 0); ret: @@ -1147,10 +1147,10 @@ lua_cryptobox_hash_gc (lua_State *L) } else { rspamd_explicit_memzero (h->h, sizeof (*h->h)); - g_slice_free1 (sizeof (*h->h), h->h); + g_free (h->h); } - g_slice_free1 (sizeof (*h), h); + g_free (h); return 0; } |