summaryrefslogtreecommitdiff
path: root/lib/comp/block_processor.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/comp/block_processor.c')
-rw-r--r--lib/comp/block_processor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/comp/block_processor.c b/lib/comp/block_processor.c
index 5938b3a..06dc384 100644
--- a/lib/comp/block_processor.c
+++ b/lib/comp/block_processor.c
@@ -29,7 +29,7 @@ block_processor_t *block_processor_create(size_t max_block_size,
void *user,
block_cb callback)
{
- block_processor_t *proc = calloc(1, sizeof(*proc) + max_block_size);
+ block_processor_t *proc = alloc_flex(sizeof(*proc), 1, max_block_size);
(void)num_workers;
if (proc == NULL) {