fix crash/leaks from xmlSchematronParse due to improper schema document

* schematron.c: fix crash/leaks from xmlSchematronParse due to improper
  schema document ownership for bug #495215

svn path=/trunk/; revision=3663
This commit is contained in:
Rob Richards 2007-11-13 20:27:52 +00:00
parent 2a512dac2d
commit b9ba0facb5
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Nov 13 21:26:27 CET 2007 Rob Richards <rrichards@ctindustries.net>
* schematron.c: fix crash/leaks from xmlSchematronParse due to improper
schema document ownership for bug #495215
Tue Oct 30 21:24:55 CET 2007 Daniel Veillard <daniel@veillard.com>
* xmlmemory.c: xmlFree(NULL) should not crash in debug mode

View File

@ -1204,6 +1204,9 @@ xmlSchematronParse(xmlSchematronParserCtxtPtr ctxt)
}
/* the original document must be kept for reporting */
ret->doc = doc;
if (preserve) {
ret->preserve = 1;
}
preserve = 1;
exit: