Fix for double-freeing.

This commit is contained in:
Martin Haye 2018-03-28 16:36:37 -07:00
parent 91d58fb584
commit add1c62f75

View File

@ -179,6 +179,9 @@ LOAD_SECTION
LDX ptr
LDY ptr+1
BEQ + ; skip if null ptr
LDA #0
STA ptr
STA ptr+1
LDA #FREE_MEMORY
JSR mainLoader
+