Fixed a memory allocation bug
A newly created free gap was not included in the chain, thus not visible to allocator