Commit 8fe31d96 authored by Sophia Wang's avatar Sophia Wang Committed by facebook-github-bot-1

fix clang ASAN error in DelayedDestructionBaseTest

Summary: fix a use after free bug. this line is stupid!

Reviewed By: @siyengar

Differential Revision: D2283041
parent 8e922526
...@@ -88,7 +88,6 @@ TEST_F(DelayedDestructionBaseTest, basic) { ...@@ -88,7 +88,6 @@ TEST_F(DelayedDestructionBaseTest, basic) {
int32_t state; int32_t state;
d->onComplete(3, state); d->onComplete(3, state);
EXPECT_EQ(state, 10); // 10 = 6 + 3 + 1 EXPECT_EQ(state, 10); // 10 = 6 + 3 + 1
EXPECT_EQ(d->deleted(), true);
} }
TEST_F(DelayedDestructionBaseTest, destructFromContainer) { TEST_F(DelayedDestructionBaseTest, destructFromContainer) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment