Skip to content

Commit aa07fd8

Browse files
aalkinclaude
andcommitted
Delete deserialized ROOT objects in test_DataRefUtils
The objects returned by the deserialization helpers were never deleted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 56953ec commit aa07fd8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Framework/Core/test/test_DataRefUtils.cxx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ TEST_CASE("PureRootTest")
3838
auto* outS = (TObjString*)buffer2.ReadObjectAny(storedClass);
3939
REQUIRE(outS != nullptr);
4040
REQUIRE(outS->GetString() == "test");
41+
delete outS;
4142
}
4243

4344
// Simple test to do root deserialization.
@@ -92,4 +93,5 @@ TEST_CASE("TestRootContainerSerialization")
9293
// the extracted object must be owning to avoid memory leaks
9394
// the get method takes care of this
9495
REQUIRE(s->IsOwner());
96+
delete tm;
9597
}

0 commit comments

Comments
 (0)