unittests: clean memory in flow storage tests

Before tests are started an init is already done, so don't overwrite an allocation.
pull/14025/head
Victor Julien 1 month ago committed by Victor Julien
parent 700e687118
commit e2d09fbd5e

@ -88,6 +88,7 @@ static int FlowStorageTest01(void)
{
Flow *f = NULL;
StorageCleanup();
StorageInit();
FlowStorageId id1 = FlowStorageRegister("test", 8, StorageTestAlloc, StorageTestFree);
@ -169,6 +170,7 @@ static int FlowStorageTest02(void)
{
Flow *f = NULL;
StorageCleanup();
StorageInit();
FlowStorageId id1 = FlowStorageRegister("test", sizeof(void *), NULL, StorageTestFree);
@ -220,6 +222,7 @@ static int FlowStorageTest03(void)
{
Flow *f = NULL;
StorageCleanup();
StorageInit();
FlowStorageId id1 = FlowStorageRegister("test1", sizeof(void *), NULL, StorageTestFree);

Loading…
Cancel
Save