Free the keys from the search tree before deleting it