aboutsummaryrefslogtreecommitdiffstats
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2009-09-11 15:30:19 +0200
committerDaniel Veillard <veillard@redhat.com>2009-09-11 15:30:19 +0200
commit84bff68e03824d14b0e2cd58167303ec0b13c840 (patch)
tree3fe58546c64ede3b7c1f4c66a55b63ed2a93fb21 /xmllint.c
parent293416828e1467f877d9dd928f174dcf81b103bc (diff)
downloadandroid_external_libxml2-84bff68e03824d14b0e2cd58167303ec0b13c840.tar.gz
android_external_libxml2-84bff68e03824d14b0e2cd58167303ec0b13c840.tar.bz2
android_external_libxml2-84bff68e03824d14b0e2cd58167303ec0b13c840.zip
594874 Forgot an fclose in xmllint
* xmllint.c: as pointed out by Pavol Rusnak, an fclose was missing in some case.
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmllint.c b/xmllint.c
index 25c6fb98..6e4138e9 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2175,6 +2175,8 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
doc = NULL;
}
}
+ if (f != stdin)
+ fclose(f);
}
} else
#endif /* LIBXML_PUSH_ENABLED */