summaryrefslogtreecommitdiff
path: root/expat
diff options
context:
space:
mode:
authorRhodri James <rhodri@kynesim.co.uk>2017-07-27 14:24:28 +0100
committerRhodri James <rhodri@kynesim.co.uk>2017-07-27 14:24:28 +0100
commit85df01d9e0e176f7cfb7b70d3bd3dba41826a57c (patch)
tree339dc2ea50eb89327aa7eaa5b3a907e8e40b83c0 /expat
parent165bfa94efeb2d14998da811b6049e67f045eb28 (diff)
downloadlibexpat-git-85df01d9e0e176f7cfb7b70d3bd3dba41826a57c.tar.gz
Make test_alloc_realloc_attributes() robust vs allocation changes
Diffstat (limited to 'expat')
-rw-r--r--expat/tests/runtests.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c
index c99045db..4de92514 100644
--- a/expat/tests/runtests.c
+++ b/expat/tests/runtests.c
@@ -9912,7 +9912,9 @@ START_TEST(test_alloc_realloc_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)