Fixed a leak in pair