Skip to content

Commit

Permalink
fix double-free in allocate.asm
Browse files Browse the repository at this point in the history
  • Loading branch information
OliveIsAWord authored and ry755 committed Jul 17, 2024
1 parent 9a19054 commit cd3dcae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions demos/allocate/allocate.asm
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@
mov r0, lf
call print

; free all blocks and exit
mov r0, [first_4byte_ptr]
call free_memory
; free all live blocks and exit
mov r0, [second_4byte_ptr]
call free_memory
mov r0, [third_4byte_ptr]
Expand Down

0 comments on commit cd3dcae

Please sign in to comment.