[#12] Fixed memory leaks in MemorySuite