Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset ba0aa6f in mainline


Ignore:
Timestamp:
2009-07-29T12:09:48Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
88d653c
Parents:
5e73815
Message:

the size argument to split_mark() should include the header and footer size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/malloc.c

    r5e73815 rba0aa6f  
    411411                        block_check(next_head);
    412412                        block_init(head, head->size + next_head->size, false);
    413                         split_mark(head, ALIGN_UP(size, BASE_ALIGN));
     413                        split_mark(head, real_size);
    414414                       
    415415                        ptr = ((void *) head) + sizeof(heap_block_head_t);
Note: See TracChangeset for help on using the changeset viewer.