From 74143f39e7f2dea959d3e1433f0743a55e9c55a7 Mon Sep 17 00:00:00 2001 From: Christopher Dunn Date: Wed, 22 Apr 2015 19:33:41 -0700 Subject: [PATCH] fix leak in unit-tests --- src/test_lib_json/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test_lib_json/main.cpp b/src/test_lib_json/main.cpp index f0e3436..09c3903 100644 --- a/src/test_lib_json/main.cpp +++ b/src/test_lib_json/main.cpp @@ -2209,6 +2209,7 @@ JSONTEST_FIXTURE(CharReaderAllowSingleQuotesTest, issue182) { JSONTEST_ASSERT_STRING_EQUAL("x", root["a"].asString()); JSONTEST_ASSERT_STRING_EQUAL("y", root["b"].asString()); } + delete reader; } struct CharReaderAllowZeroesTest : JsonTest::TestCase {}; @@ -2241,6 +2242,7 @@ JSONTEST_FIXTURE(CharReaderAllowZeroesTest, issue176) { JSONTEST_ASSERT_STRING_EQUAL("x", root["a"].asString()); JSONTEST_ASSERT_STRING_EQUAL("y", root["b"].asString()); } + delete reader; } struct BuilderTest : JsonTest::TestCase {};