diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index bb963fc3..a2dc7e97 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -8683,7 +8683,9 @@ START_TEST(test_alloc_realloc_many_attributes) if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR) break; - XML_ParserReset(parser, NULL); + /* See comment in test_alloc_parse_xdecl() */ + alloc_teardown(); + alloc_setup(); } if (i == 0) fail("Parse succeeded despite no reallocations");