diff options
author | Rob Richards <rrichard@src.gnome.org> | 2007-12-06 10:08:52 +0000 |
---|---|---|
committer | Rob Richards <rrichard@src.gnome.org> | 2007-12-06 10:08:52 +0000 |
commit | 3108ba92b7a7a03bb4f913a59e2bbece6322275a (patch) | |
tree | 36e788e3c4afb12390d85106af2aa40262a6619a /pattern.c | |
parent | 5fce6d6870936fab7b51cda3496b7b9dfcadd01b (diff) | |
download | libxml2-3108ba92b7a7a03bb4f913a59e2bbece6322275a.tar.gz |
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
Diffstat (limited to 'pattern.c')
-rw-r--r-- | pattern.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |