Fix a ressource leak in the error path