folly/experimental/test/FutureDAGTest.cpp: fix ASAN-detected heap use-after-free
authorJim Meyering <meyering@fb.com>
Fri, 29 Jul 2016 03:01:21 +0000 (20:01 -0700)
committerFacebook Github Bot 5 <facebook-github-bot-5-bot@fb.com>
Fri, 29 Jul 2016 03:08:29 +0000 (20:08 -0700)
Summary: Building/testing with ASAN would elicit a heap use-after-free.

Differential Revision: D3639117

fbshipit-source-id: 30b5fa7d3fe1d804c4fba5bada8197a3a05a8333

folly/experimental/test/FutureDAGTest.cpp

index fa577bf1bb7061132414d8496a55687ea5dc609a..fd17ae6ed4c1f68487e2d5d8b68542c05f82734c 100644 (file)
@@ -123,6 +123,7 @@ TEST_F(FutureDAGTest, RemoveNodeComplex) {
   dependency(h2, h1);
   remove(h1);
   remove(h2);
+  remove(h3);
   ASSERT_NO_THROW(dag->go().get());
   checkOrder();
 }