UBTNode::CleanupMemory

Cleanup memory block. CleanupNodeMemory template function is provided to help cleanup the memory.