]> granicus.if.org Git - libexpat/commitdiff
Make test_alloc_realloc_nested_groups() robust vs allocation changes
authorRhodri James <rhodri@kynesim.co.uk>
Thu, 27 Jul 2017 12:56:43 +0000 (13:56 +0100)
committerRhodri James <rhodri@kynesim.co.uk>
Thu, 27 Jul 2017 12:56:43 +0000 (13:56 +0100)
expat/tests/runtests.c

index 4d90aef2388659805c81ec501ae708be10c22019..8a78c0bb056f74edda95f77dc4aa8ee07fa9f13e 100644 (file)
@@ -9406,7 +9406,9 @@ START_TEST(test_alloc_realloc_nested_groups)
         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)