improved tests to avoid memory leak

This commit is contained in:
csoler 2017-07-24 12:16:06 +02:00
parent 764fadf0ee
commit df691bd2d7
12 changed files with 120 additions and 141 deletions

View file

@ -172,6 +172,8 @@ int test_TlvSet(std::vector<RsTlvItem *> items, int maxsize)
test_CreateTlvStack(std::cerr, items, data, &size);
test_StepThroughTlvStack(std::cerr, data, size);
free(data) ;
return 1;
}