diff --git a/utilities/document/json_document_test.cc b/utilities/document/json_document_test.cc index 70714c5c2f..55d550b355 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(