xpc: no need to clear channel table, they are bound to IKE_SA lifetime
authorMartin Willi <martin@revosec.ch>
Thu, 2 May 2013 11:58:22 +0000 (13:58 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 18 Jul 2013 10:17:55 +0000 (12:17 +0200)
src/frontends/osx/charon-xpc/xpc_channels.c

index 494ce0b..3eceaa8 100644 (file)
@@ -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);