Index: trparse_xml.c =================================================================== --- trparse_xml.c (revision 27467) +++ trparse_xml.c (revision 27468) @@ -50,6 +50,7 @@ pcb_message(PCB_MSG_ERROR, "can't open '%s'\n", fn); return -1; } + fclose(f); doc = xmlReadFile(efn, NULL, 0); if (doc == NULL) {