Correct ressource leak