From d8560ec2e819c5a708caf5e35f791571ea3628aa Mon Sep 17 00:00:00 2001 From: liaogang Date: Thu, 17 Aug 2017 10:29:50 +0800 Subject: [PATCH] Fix scatter_test --- paddle/operators/scatter_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/operators/scatter_test.cc b/paddle/operators/scatter_test.cc index 4449ce6564..26fdaff146 100644 --- a/paddle/operators/scatter_test.cc +++ b/paddle/operators/scatter_test.cc @@ -49,4 +49,8 @@ TEST(scatter, ScatterUpdate) { EXPECT_EQ(output->data()[i], float(i - 4)); for (size_t i = 8; i < 16; ++i) EXPECT_EQ(p_output[i], float(0)); for (size_t i = 8; i < 16; ++i) EXPECT_EQ(output->data()[i], float(0)); + + delete src; + delete index; + delete output; } -- GitLab