Skip to content

Commit

Permalink
fix pool: use zalloc to clean mem
Browse files Browse the repository at this point in the history
  • Loading branch information
ffashion committed Feb 27, 2024
1 parent 5227e47 commit f144e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/xdbd_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void *xdbd_palloc(xdbd_pool_t *pool, unsigned size) {
return NULL;
}

node->buf = bfdev_malloc(NULL, size);
node->buf = bfdev_zalloc(NULL, size);
if (node->buf == NULL) {
bfdev_free(NULL, node);
return NULL;
Expand Down

0 comments on commit f144e99

Please sign in to comment.