From 5930fe01963136ab92125feec0c6204d9c9225dc Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Mon, 18 Jul 2022 20:59:45 +0200 Subject: [PATCH] Reset nsNr in xmlCtxtReset Reference:https://github.com/GNOME/libxml2/commit/5930fe01963136ab92125feec0c6204d9c9225dc Conflict:NA --- parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser.c b/parser.c index dd507c0..6b04bbf 100644 --- a/parser.c +++ b/parser.c @@ -14835,6 +14835,8 @@ xmlCtxtReset(xmlParserCtxtPtr ctxt) ctxt->nameNr = 0; ctxt->name = NULL; + ctxt->nsNr = 0; + DICT_FREE(ctxt->version); ctxt->version = NULL; DICT_FREE(ctxt->encoding); -- 2.27.0