summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/libxml/src/parserInternals.c
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/libxml/src/parserInternals.c')
-rw-r--r--chromium/third_party/libxml/src/parserInternals.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/third_party/libxml/src/parserInternals.c b/chromium/third_party/libxml/src/parserInternals.c
index a731c169340..08c6faf230d 100644
--- a/chromium/third_party/libxml/src/parserInternals.c
+++ b/chromium/third_party/libxml/src/parserInternals.c
@@ -1551,8 +1551,10 @@ xmlNewInputFromFile(xmlParserCtxtPtr ctxt, const char *filename) {
}
inputStream = xmlNewInputStream(ctxt);
- if (inputStream == NULL)
+ if (inputStream == NULL) {
+ xmlFreeParserInputBuffer(buf);
return(NULL);
+ }
inputStream->buf = buf;
inputStream = xmlCheckHTTPInput(ctxt, inputStream);