Skip to content

Commit 6dd5b3f

Browse files
committed
Fix error in realloc's hand-off to do_allocate
1 parent c54a4fa commit 6dd5b3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/00/memory.asm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,8 @@ _: pop af
625625
jr ++_
626626
_: pop de
627627
_: ld hl, (prev_block_ptr)
628+
call free ; Consolodate blocks
629+
dec hl \ dec hl \ dec hl
628630
jp do_allocate@malloc ; Hand it over to malloc to finish the job
629631
.manual_realloc:
630632
; We can't expand into neighboring sections so we have to do a manual realloc/copy/free

0 commit comments

Comments
 (0)