1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-29 01:49:22 +03:00

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
This commit is contained in:
Rob Richards
2007-12-06 10:08:52 +00:00
parent 5fce6d6870
commit 3108ba92b7
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -1091,6 +1091,7 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
}
}
XML_PAT_FREE_STRING(ctxt, prefix);
name = NULL;
if (token == NULL) {
if (CUR == '*') {
NEXT;
@ -1157,6 +1158,7 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
}
}
XML_PAT_FREE_STRING(ctxt, prefix);
name = NULL;
if (token == NULL) {
if (CUR == '*') {
NEXT;