aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/unit_tester/tests/test_pool.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-09-11 11:19:56 +0200
committerMartin Willi <martin@revosec.ch>2012-09-11 16:18:28 +0200
commit28a3d5bfbde466f71a3f8b692d58b775ff7290ce (patch)
tree8dd021fd6e158054914b3378970a8ef6fe1932d2 /src/libcharon/plugins/unit_tester/tests/test_pool.c
parent594c58e1118e496eadd284647755b16b74665337 (diff)
downloadstrongswan-28a3d5bfbde466f71a3f8b692d58b775ff7290ce.tar.bz2
strongswan-28a3d5bfbde466f71a3f8b692d58b775ff7290ce.tar.xz
Pass full pool list to release_address
Diffstat (limited to 'src/libcharon/plugins/unit_tester/tests/test_pool.c')
-rw-r--r--src/libcharon/plugins/unit_tester/tests/test_pool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcharon/plugins/unit_tester/tests/test_pool.c b/src/libcharon/plugins/unit_tester/tests/test_pool.c
index f67353dff..f36953f3a 100644
--- a/src/libcharon/plugins/unit_tester/tests/test_pool.c
+++ b/src/libcharon/plugins/unit_tester/tests/test_pool.c
@@ -53,15 +53,15 @@ static void* testing(void *thread)
}
}
- pools->destroy(pools);
-
/* release addresses */
for (i = 0; i < ALLOCS; i++)
{
hydra->attributes->release_address(hydra->attributes,
- "test", addr[i], id[i]);
+ pools, addr[i], id[i]);
}
+ pools->destroy(pools);
+
/* cleanup */
for (i = 0; i < ALLOCS; i++)
{