Fixed a typo causing a memory leak in catch