Fix small memleak in test_lib_part.cpp

This commit is contained in:
Thomas Pointhuber 2024-05-04 13:06:18 +02:00
parent 691c492d1e
commit e82b8f6fda
1 changed files with 2 additions and 2 deletions

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 );
}