diff --git a/test/unittests/apiTypesV2/Entity_test.cpp b/test/unittests/apiTypesV2/Entity_test.cpp index 16635b776f..cb84e0b16f 100644 --- a/test/unittests/apiTypesV2/Entity_test.cpp +++ b/test/unittests/apiTypesV2/Entity_test.cpp @@ -119,7 +119,7 @@ TEST(Entity, checkV1) EXPECT_EQ("OK", testDataFromFile(expectedBuf, sizeof(expectedBuf), outfile1)) << "Error getting test data from '" << outfile1 << "'"; EXPECT_STREQ(expectedBuf, out.c_str()); - delete enP; + delete ceVectorP; utExit(); } diff --git a/test/unittests/parse/compoundValue_test.cpp b/test/unittests/parse/compoundValue_test.cpp index 907cd4bddf..fee9522ba5 100644 --- a/test/unittests/parse/compoundValue_test.cpp +++ b/test/unittests/parse/compoundValue_test.cpp @@ -44,7 +44,7 @@ TEST(compoundValue, tenCompounds) utInit(); upcrP = &reqData.upcr.res; - rendered = upcrP->toJsonV1(false); + rendered = upcrP->toJsonV1(); utExit(); }