mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 12:57:26 +02:00
Avoid memory leak in alloc_construct_cxx11_test.cpp, because ASan diagnoses it
This commit is contained in:
@ -72,6 +72,7 @@ int main()
|
|||||||
BOOST_TEST_EQ(p->value(), 2);
|
BOOST_TEST_EQ(p->value(), 2);
|
||||||
boost::alloc_destroy(a, p);
|
boost::alloc_destroy(a, p);
|
||||||
BOOST_TEST_EQ(type::count, 0);
|
BOOST_TEST_EQ(type::count, 0);
|
||||||
|
a.deallocate(p, 1);
|
||||||
return boost::report_errors();
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user