Completed some part of deallocateMemory().