Skip to content

Commit

Permalink
Fix error in realloc's hand-off to do_allocate
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevault committed Oct 14, 2015
1 parent c54a4fa commit 6dd5b3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/00/memory.asm
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ _: pop af
jr ++_
_: pop de
_: ld hl, (prev_block_ptr)
call free ; Consolodate blocks
dec hl \ dec hl \ dec hl
jp do_allocate@malloc ; Hand it over to malloc to finish the job
.manual_realloc:
; We can't expand into neighboring sections so we have to do a manual realloc/copy/free
Expand Down

0 comments on commit 6dd5b3f

Please sign in to comment.