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

index 68de75a3047559ab3f1632dfbfe2f92124b4c4ef..d0641885a0c63d3d9ae2a0af6c7f0ffbe8c35f88 100644 (file)
@@ -9095,13 +9095,16 @@ START_TEST(test_alloc_realloc_implied_attribute)
         "]><doc/>";
     int i;
 #define MAX_REALLOC_COUNT 10
+
     for (i = 0; i < MAX_REALLOC_COUNT; i++) {
         reallocation_count = i;
         XML_SetAttlistDeclHandler(parser, dummy_attlist_decl_handler);
         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");