fix crash from double free of name for bug #501760
* pattern.c: fix crash from double free of name for bug #501760
svn path=/trunk/; revision=3667
diff --git a/ChangeLog b/ChangeLog
index acf2c2c..aa52df6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Dec 6 11:07:42 CET 2007 Rob Richards <rrichards@ctindustries.net>
+
+ * pattern.c: fix crash from double free of name for bug #501760
+
Fri Nov 23 11:47:48 CET 2007 Daniel Veillard <daniel@veillard.com>
* threads.c: remove unused variable in __xmlGlobalInitMutexLock
diff --git a/pattern.c b/pattern.c
index cf41606..ee51968 100644
--- a/pattern.c
+++ b/pattern.c
@@ -1091,6 +1091,7 @@
}
}
XML_PAT_FREE_STRING(ctxt, prefix);
+ name = NULL;
if (token == NULL) {
if (CUR == '*') {
NEXT;
@@ -1157,6 +1158,7 @@
}
}
XML_PAT_FREE_STRING(ctxt, prefix);
+ name = NULL;
if (token == NULL) {
if (CUR == '*') {
NEXT;