diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-14 23:05:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-14 23:05:07 +0100 |
commit | eb1eaf0f1020c582f25bc0fdbbe61a0850a895ca (patch) | |
tree | a95a8f73a84ce59816cfd83af9f7cb8f90a8d1b0 /utils | |
parent | 1c356c51a97e023e8fc936d46477233e5d65cc5b (diff) | |
download | rspamd-eb1eaf0f1020c582f25bc0fdbbe61a0850a895ca.tar.gz rspamd-eb1eaf0f1020c582f25bc0fdbbe61a0850a895ca.zip |
[Minor] Fix memory allocation
Diffstat (limited to 'utils')
-rw-r--r-- | utils/received_parser_bench.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/received_parser_bench.c b/utils/received_parser_bench.c index 65c656741..4979d858a 100644 --- a/utils/received_parser_bench.c +++ b/utils/received_parser_bench.c @@ -43,7 +43,7 @@ rspamd_process_file (const gchar *fname) g_io_channel_set_encoding (f, NULL, NULL); buf = g_string_sized_new (8192); - task = g_malloc0 (sizeof (task)); + task = g_malloc0 (sizeof (*task)); task->task_pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), "test"); while (g_io_channel_read_line_string (f, buf, NULL, &err) |