Fix small memleak in test_lib_part.cpp

This commit is contained in:
Thomas Pointhuber
2024-05-04 13:12:25 +02:00
parent 691c492d1e
commit e82b8f6fda
+2 -2
View File
@@ -516,8 +516,8 @@ BOOST_AUTO_TEST_CASE( Compare )
// Time stamp comparison tests.
// Check to see if we broke the copy ctor.
LIB_SYMBOL* copy = new LIB_SYMBOL( testPart );
BOOST_CHECK( testPart.Compare( *copy ) == 0 );
LIB_SYMBOL copy( testPart );
BOOST_CHECK( testPart.Compare( copy ) == 0 );
}