Proper freeing in finish().