fixed problem with invalid char encountered during text include (reported
* xinclude.c: fixed problem with invalid char encountered during text include (reported on xslt mailing list)
svn path=/trunk/; revision=3583
diff --git a/xinclude.c b/xinclude.c
index 01e967e..34a5489 100644
--- a/xinclude.c
+++ b/xinclude.c
@@ -1889,6 +1889,9 @@
xmlXIncludeErr(ctxt, ctxt->incTab[nr]->ref,
XML_XINCLUDE_INVALID_CHAR,
"%s contains invalid char\n", URL);
+ xmlFreeParserInputBuffer(buf);
+ xmlFree(URL);
+ return(-1);
} else {
xmlNodeAddContentLen(node, &content[i], l);
}