Fixed a failed merge for memory freeing of the walls.