Finish a11p2, memory allocation and deallocation.