mirror of
https://github.com/google/pebble.git
synced 2025-04-30 15:21:41 -04:00
spelling: next
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
56f2f72c43
commit
9985f1fdf3
1 changed files with 2 additions and 2 deletions
|
@ -369,11 +369,11 @@ void heap_free(Heap* const heap, void *ptr, uintptr_t client_pc) {
|
|||
heap_info_ptr->Size += next_block->Size;
|
||||
|
||||
/* Since we merged the next segment, we have to update*/
|
||||
/* the next next segment's PrevSize field. */
|
||||
/* the next segment's PrevSize field. */
|
||||
HeapInfo_t *next_next_block = get_next_block(heap, heap_info_ptr);
|
||||
|
||||
/* If we are pointing at the end of the heap, then use*/
|
||||
/* the begin as the next next segment. */
|
||||
/* the begin as the next segment. */
|
||||
if(next_next_block == heap->end) {
|
||||
heap->begin->PrevSize = heap_info_ptr->Size;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue