Skip to content

Commit

Permalink
Update dynamic_pool.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed May 23, 2024
1 parent 2e04287 commit 400b54b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/dynamic_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ typedef struct bytes_dynamic_pool {
static inline void dynamic_pool_malloc_block(as_dynamic_pool *dynamic_pool,
as_error *err)
{
dynamic_pool->pool[dynamic_pool->block_id] = (as_bytes *)malloc(sizeof(as_bytes) * AS_DYNAMIC_POOL_BLOCK_SIZE_MIN);
dynamic_pool->pool[dynamic_pool->block_id] = (as_bytes *)malloc(sizeof(as_bytes) * dynamic_pool->current_block_size);
if (dynamic_pool->pool[dynamic_pool->block_id] == NULL) {
as_error_update(err, AEROSPIKE_ERR,
"Failed to allocated memory for dynamic_pool");
Expand Down

0 comments on commit 400b54b

Please sign in to comment.