mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-20 20:08:30 -04:00
improved tests to avoid memory leak
This commit is contained in:
parent
764fadf0ee
commit
df691bd2d7
12 changed files with 120 additions and 141 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue