Skip to content

Commit 63d7b61

Browse files
committed
Fix
1 parent f766961 commit 63d7b61

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ddprof-lib/src/test/cpp/thread_teardown_safety_ut.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ static void *t02_body(void *) {
133133

134134
// release() with TLS already null must not double-free.
135135
ProfiledThread::release();
136+
// Complete the simulated teardown: delete the object (mirrors what freeKey
137+
// would do). Destructor is private so we need the test helper.
138+
ProfiledThread::deleteForTest(detached);
136139
EXPECT_EQ(nullptr, ProfiledThread::current());
137140
return nullptr;
138141
}

0 commit comments

Comments
 (0)