Coverity report 1215467, open FILE handle could be leaked.