Skip to content

Commit 38c4f9c

Browse files
committed
Fixed 'Leaking memory.' by deepcode
1 parent b06b524 commit 38c4f9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

unit-tests.wsjcpp/src/unit_test_procedure_concat.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ void UnitTestProcedureConcat::executeTest() {
3939
compare("Var2", pVar2->getValue(), "456");
4040
compare("Var3", pVar3->getValue(), "789");
4141
compare("Var4", pVar4->getValue(), "0");
42+
43+
delete pProcedureConcat;
44+
delete pVar1;
45+
delete pVar2;
46+
delete pVar3;
47+
delete pVar4;
4248
}
4349

4450
// ---------------------------------------------------------------------

0 commit comments

Comments
 (0)