1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-19 14:50:07 +03:00

594874 Forgot an fclose in xmllint

* xmllint.c: as pointed out by Pavol Rusnak, an fclose was missing
  in some case.
This commit is contained in:
Daniel Veillard 2009-09-11 15:30:19 +02:00
parent 293416828e
commit 84bff68e03

View File

@ -2175,6 +2175,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
doc = NULL;
}
}
if (f != stdin)
fclose(f);
}
} else
#endif /* LIBXML_PUSH_ENABLED */