[#33] Fixed leaks in MemorySuite.