From: Martin Willi Date: Mon, 16 Aug 2010 14:28:35 +0000 (+0200) Subject: Do not free registered algorithms, plugins are responsible for unregistering X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a369a5ece982000574a7766be82dcb56bcfb6956;p=people%2Fms%2Fstrongswan.git Do not free registered algorithms, plugins are responsible for unregistering --- diff --git a/src/libstrongswan/crypto/crypto_factory.c b/src/libstrongswan/crypto/crypto_factory.c index 8089a1e7a..27a2b83a3 100644 --- a/src/libstrongswan/crypto/crypto_factory.c +++ b/src/libstrongswan/crypto/crypto_factory.c @@ -670,12 +670,12 @@ METHOD(crypto_factory_t, add_test_vector, void, METHOD(crypto_factory_t, destroy, void, private_crypto_factory_t *this) { - this->crypters->destroy_function(this->crypters, free); - this->signers->destroy_function(this->signers, free); - this->hashers->destroy_function(this->hashers, free); - this->prfs->destroy_function(this->prfs, free); - this->rngs->destroy_function(this->rngs, free); - this->dhs->destroy_function(this->dhs, free); + this->crypters->destroy(this->crypters); + this->signers->destroy(this->signers); + this->hashers->destroy(this->hashers); + this->prfs->destroy(this->prfs); + this->rngs->destroy(this->rngs); + this->dhs->destroy(this->dhs); this->tester->destroy(this->tester); this->lock->destroy(this->lock); free(this);