Avoid memory leak in alloc_construct_cxx11_test.cpp, because ASan diagnoses it

This commit is contained in:
Peter Dimov
2023-01-26 01:10:00 +02:00
parent bfad92e307
commit bd1835f92f

View File

@ -72,6 +72,7 @@ int main()
BOOST_TEST_EQ(p->value(), 2);
boost::alloc_destroy(a, p);
BOOST_TEST_EQ(type::count, 0);
a.deallocate(p, 1);
return boost::report_errors();
}
#else