http://gambaswiki.org/bugtracker/edit?object=BUG.1025&from=L21haW4- Comment #1 by Jussi LAHTINEN: The problem is you are trying to free allocation, which is not made in the memory address (2000). I'm not sure if it is possible to test the address validity.