diff --git a/ChangeLog b/ChangeLog index 86870c9c..05c8689c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Oct 13 14:42:44 CEST 2006 Daniel Veillard + + * parser.c: fix a problem in xmlSplitQName resulting in bug #334669 + Fri Oct 13 12:27:22 CEST 2006 Daniel Veillard * parser.c: fixed xmlIOParseDTD handling of @input in error case, diff --git a/parser.c b/parser.c index a79e27a7..6b5e86bf 100644 --- a/parser.c +++ b/parser.c @@ -2492,10 +2492,12 @@ xmlSplitQName(xmlParserCtxtPtr ctxt, const xmlChar *name, xmlChar **prefix) { buffer[len] = 0; } - /* nasty but well=formed if ((c == ':') && (*cur == 0)) { + if (buffer != NULL) + xmlFree(buffer); + *prefix = NULL; return(xmlStrdup(name)); - } */ + } if (buffer == NULL) ret = xmlStrndup(buf, len);