From bd1835f92f97293636f237d8ecfc2c5ea0f6f33f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 26 Jan 2023 01:10:00 +0200 Subject: [PATCH] Avoid memory leak in alloc_construct_cxx11_test.cpp, because ASan diagnoses it --- test/alloc_construct_cxx11_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/alloc_construct_cxx11_test.cpp b/test/alloc_construct_cxx11_test.cpp index 928cec8..2a5c86e 100644 --- a/test/alloc_construct_cxx11_test.cpp +++ b/test/alloc_construct_cxx11_test.cpp @@ -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