fix a problem in xmlSplitQName resulting in bug #334669 Daniel
* parser.c: fix a problem in xmlSplitQName resulting in bug #334669
Daniel
diff --git a/ChangeLog b/ChangeLog
index 86870c9..05c8689 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Oct 13 14:42:44 CEST 2006 Daniel Veillard <daniel@veillard.com>
+
+ * parser.c: fix a problem in xmlSplitQName resulting in bug #334669
+
Fri Oct 13 12:27:22 CEST 2006 Daniel Veillard <daniel@veillard.com>
* parser.c: fixed xmlIOParseDTD handling of @input in error case,
diff --git a/parser.c b/parser.c
index a79e27a..6b5e86b 100644
--- a/parser.c
+++ b/parser.c
@@ -2492,10 +2492,12 @@
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);