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/libmime/mime_parser.c | |
parent | 4656f5525d110e3951672ad66a29cfb395f7d32f (diff) | |
download | rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.tar.gz rspamd-b2b9cfa6161a98d5d4d074573f99fdac6cb24556.zip |
[Minor] Further portion of g_slice elimination
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r-- | src/libmime/mime_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index f1bb26862..410e14fbb 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -1018,7 +1018,7 @@ rspamd_mime_parse_stack_free (struct rspamd_mime_parser_ctx *st) if (st) { g_ptr_array_free (st->stack, TRUE); g_array_free (st->boundaries, TRUE); - g_slice_free1 (sizeof (*st), st); + g_free (st); } } @@ -1147,7 +1147,7 @@ rspamd_mime_parse_message (struct rspamd_task *task, * Here are dragons: * We allocate new parser context as we need to shift pointers */ - nst = g_slice_alloc0 (sizeof (*st)); + nst = g_malloc0 (sizeof (*st)); nst->stack = g_ptr_array_sized_new (4); nst->pos = task->raw_headers_content.body_start; nst->end = task->msg.begin + task->msg.len; @@ -1270,7 +1270,7 @@ rspamd_mime_parse_task (struct rspamd_task *task, GError **err) lib_ctx->key_usages = 0; } - st = g_slice_alloc0 (sizeof (*st)); + st = g_malloc0 (sizeof (*st)); st->stack = g_ptr_array_sized_new (4); st->pos = task->raw_headers_content.body_start; st->end = task->msg.begin + task->msg.len; |