From a82ea25fc83f563c574ddb863d6c17d9c5abdbd2 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Thu, 28 Jul 2022 21:35:17 +0200 Subject: [PATCH] Also reset nsNr in htmlCtxtReset --- HTMLparser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HTMLparser.c b/HTMLparser.c index 9079fa8a..1520663b 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -6743,6 +6743,8 @@ htmlCtxtReset(htmlParserCtxtPtr ctxt) ctxt->nameNr = 0; ctxt->name = NULL; + ctxt->nsNr = 0; + DICT_FREE(ctxt->version); ctxt->version = NULL; DICT_FREE(ctxt->encoding);