We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cfd1a2a + 298f4d4 commit 566a550Copy full SHA for 566a550
src/base_alloc/base_alloc.c
@@ -216,7 +216,7 @@ void *umf_ba_alloc(umf_ba_pool_t *pool) {
216
217
// mark the memory defined to read the next ptr, after this is done
218
// we'll mark the memory as undefined
219
- utils_annotate_memory_defined(chunk, sizeof(chunk));
+ utils_annotate_memory_defined(chunk, sizeof(*chunk));
220
221
pool->metadata.free_list = pool->metadata.free_list->next;
222
pool->metadata.n_allocs++;
0 commit comments