From: Rhodri James Date: Thu, 27 Jul 2017 12:47:08 +0000 (+0100) Subject: Make test_alloc_realloc_default_attribute() robust vs allocation X-Git-Tag: R_2_2_3~16^2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cef76908df8889962768658035ab8014f6a5422c;p=libexpat Make test_alloc_realloc_default_attribute() robust vs allocation --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index d0641885..b8864124 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -9154,7 +9154,9 @@ START_TEST(test_alloc_realloc_default_attribute) 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 failing reallocator");