mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
fixed the serious CPU usage problem reported by Grant Goodale applied
* parser.c: fixed the serious CPU usage problem reported by Grant Goodale * HTMLparser.c: applied patch from Oliver Kidman about a free missing in htmlSAXParseDoc Daniel
This commit is contained in:
@ -5322,6 +5322,7 @@ htmlSAXParseDoc(xmlChar *cur, const char *encoding, htmlSAXHandlerPtr sax, void
|
||||
ctxt = htmlCreateDocParserCtxt(cur, encoding);
|
||||
if (ctxt == NULL) return(NULL);
|
||||
if (sax != NULL) {
|
||||
if (ctxt->sax != NULL) xmlFree (ctxt->sax);
|
||||
ctxt->sax = sax;
|
||||
ctxt->userData = userData;
|
||||
}
|
||||
|
Reference in New Issue
Block a user