From 22bffc647dc87a3a3d0c4c2588dc5092607b2892 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 2 May 2013 13:58:22 +0200 Subject: [PATCH] xpc: no need to clear channel table, they are bound to IKE_SA lifetime --- src/frontends/osx/charon-xpc/xpc_channels.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/frontends/osx/charon-xpc/xpc_channels.c b/src/frontends/osx/charon-xpc/xpc_channels.c index 494ce0b49..3eceaa88f 100644 --- a/src/frontends/osx/charon-xpc/xpc_channels.c +++ b/src/frontends/osx/charon-xpc/xpc_channels.c @@ -286,14 +286,6 @@ METHOD(xpc_channels_t, destroy, void, lib->credmgr->remove_set(lib->credmgr, &this->creds->set); this->creds->destroy(this->creds); - - enumerator = this->channels->create_enumerator(this->channels); - while (enumerator->enumerate(enumerator, NULL, &entry)) - { - destroy_entry(entry); - } - enumerator->destroy(enumerator); - this->channels->destroy(this->channels); this->lock->destroy(this->lock); free(this);