From 0cc6ea398f7296d6cb31282b838dccf613b2040d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 28 Jul 2016 20:01:21 -0700 Subject: [PATCH] folly/experimental/test/FutureDAGTest.cpp: fix ASAN-detected heap use-after-free Summary: Building/testing with ASAN would elicit a heap use-after-free. Differential Revision: D3639117 fbshipit-source-id: 30b5fa7d3fe1d804c4fba5bada8197a3a05a8333 --- folly/experimental/test/FutureDAGTest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/folly/experimental/test/FutureDAGTest.cpp b/folly/experimental/test/FutureDAGTest.cpp index fa577bf1..fd17ae6e 100644 --- a/folly/experimental/test/FutureDAGTest.cpp +++ b/folly/experimental/test/FutureDAGTest.cpp @@ -123,6 +123,7 @@ TEST_F(FutureDAGTest, RemoveNodeComplex) { dependency(h2, h1); remove(h1); remove(h2); + remove(h3); ASSERT_NO_THROW(dag->go().get()); checkOrder(); } -- 2.34.1