Missing calls to fclose().