Clean up allocations.