Skip to content

Commit

Permalink
fix leak in unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunn2001 committed Apr 23, 2015
1 parent 56650e8 commit 74143f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test_lib_json/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down Expand Up @@ -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 {};
Expand Down

0 comments on commit 74143f3

Please sign in to comment.