Fix a leak in map.