Commit 1cf18564 authored by Sven Over's avatar Sven Over Committed by Facebook Github Bot 5

fix access-after-free bug in ProducerConsumerQueueTest

Summary: This bug causes failure when the test is run under ASAN.

Reviewed By: meyering

Differential Revision: D3229494

fb-gh-sync-id: a43c8332cc45f7892ac86cd0abb799616bca7779
fbshipit-source-id: a43c8332cc45f7892ac86cd0abb799616bca7779
parent 15c9b35a
......@@ -160,11 +160,11 @@ struct CorrectnessTest {
} else {
goto again;
}
EXPECT_EQ(*data, expect);
} else {
EXPECT_EQ(*data, expect);
queue_.popFront();
}
EXPECT_EQ(*data, expect);
}
}
......
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