From 583feae8dd9b1f700df7395bd1e168ccfcaf4cac Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 20 Jun 2014 15:22:11 +0200 Subject: [PATCH] fix valgrind test --- utilities/document/json_document_test.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/utilities/document/json_document_test.cc b/utilities/document/json_document_test.cc index 70714c5c2..55d550b35 100644 --- a/utilities/document/json_document_test.cc +++ b/utilities/document/json_document_test.cc @@ -132,6 +132,7 @@ TEST(JSONDocumentTest, Serialization) { auto deserialized_json = JSONDocument::Deserialize(Slice(serialized)); ASSERT_TRUE(deserialized_json != nullptr); AssertSampleJSON(*deserialized_json); + delete deserialized_json; // deserialization failure ASSERT_TRUE(JSONDocument::Deserialize(