I am trying to free dynamically allocated heap memory space
I've tried running this simple code but I keep getting the same error:
"request (-40) is negative heap amount (syscall 9)"
.text
li $v0,9
li $a0,40
syscall
li $v0,9
li $a0,-40
syscall
Can anyone help me understand why it is not working? Is there a different way to free space?