remove attribute provider in SQL plugin destruction
authorMartin Willi <martin@strongswan.org>
Thu, 27 Nov 2008 14:33:41 +0000 (14:33 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 27 Nov 2008 14:33:41 +0000 (14:33 -0000)
src/charon/plugins/sql/sql_plugin.c

index d568936..80c224e 100644 (file)
@@ -68,6 +68,7 @@ static void destroy(private_sql_plugin_t *this)
 {
        charon->backends->remove_backend(charon->backends, &this->config->backend);
        charon->credentials->remove_set(charon->credentials, &this->cred->set);
+       charon->attributes->remove_provider(charon->attributes, &this->attribute->provider);
        charon->bus->remove_listener(charon->bus, &this->logger->listener);
        this->config->destroy(this->config);
        this->cred->destroy(this->cred);