mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
changed 'make tests' to use a concise output, scrolling to see where thing
* Makefile.am: changed 'make tests' to use a concise output, scrolling to see where thing broke wasn't pleasant * configure.in: some beta4 preparation, but not ready yet * error.c globals.c include/libxml/globals.h include/libxml/xmlerror.h: new error handling code, last error informations are stored in the parsing context or a global variable, new APIs to handle the xmlErrorPtr type. * parser.c parserInternals.c valid.c : started migrating to the new error handling code, it's a royal pain. * include/libxml/parser.h include/libxml/parserInternals.h: moved the definition of xmlNewParserCtxt() * parser.c: small potential buffer access problem in push code provided by Justin Fletcher * result/*.sax result/VC/PENesting* result/namespaces/* result/valid/*.err: some error messages were sligthly changed. Daniel
This commit is contained in:
@ -2123,6 +2123,19 @@ xmlFreeParserCtxt(xmlParserCtxtPtr ctxt)
|
||||
cur = next;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* cleanup the error strings
|
||||
*/
|
||||
if (ctxt->lastError.message != NULL)
|
||||
xmlFree(ctxt->lastError.message);
|
||||
if (ctxt->lastError.file != NULL)
|
||||
xmlFree(ctxt->lastError.file);
|
||||
if (ctxt->lastError.str1 != NULL)
|
||||
xmlFree(ctxt->lastError.str1);
|
||||
if (ctxt->lastError.str2 != NULL)
|
||||
xmlFree(ctxt->lastError.str2);
|
||||
if (ctxt->lastError.str3 != NULL)
|
||||
xmlFree(ctxt->lastError.str3);
|
||||
|
||||
#ifdef LIBXML_CATALOG_ENABLED
|
||||
if (ctxt->catalogs != NULL)
|
||||
|
Reference in New Issue
Block a user