Skip to content
Snippets Groups Projects
Commit 6804dbf7 authored by Armin Luntzer's avatar Armin Luntzer
Browse files

CHUNK: allocation size calculation must include pool alignment

parent 572f2500
No related branches found
No related tags found
No related merge requests found
......@@ -250,7 +250,7 @@ void *chunk_alloc(struct chunk_pool *pool, size_t size)
/* grab a large enough chunk to satisfy alignment and overhead needs */
alloc_sz = (size_t) chunk_align(pool,
(void *) (size + sizeof(struct chunk)));
(void *) (size + pool->align + sizeof(struct chunk)));
list_for_each_entry(p_elem, &pool->full, node) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment