Bug in the heap management code?