summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-03-24 13:00:07 +0100
committerMartin Nagy <mnagy@redhat.com>2009-03-24 13:00:07 +0100
commit408e33960f1052a24bc0fc31f4dfe13d139ae213 (patch)
treea8aad0ea57ed1538de7102c647fe208765ba523b
parentffaa1c54ad07c2af16b9a799b6cbe5cff9d6f1fe (diff)
downloadldap_driver_testing-408e33960f1052a24bc0fc31f4dfe13d139ae213.tar.gz
ldap_driver_testing-408e33960f1052a24bc0fc31f4dfe13d139ae213.tar.xz
ldap_driver_testing-408e33960f1052a24bc0fc31f4dfe13d139ae213.zip
Free the LDAP cache if something goes wrong.
-rw-r--r--ldap_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ldap_driver.c b/ldap_driver.c
index e977d2e..6044f74 100644
--- a/ldap_driver.c
+++ b/ldap_driver.c
@@ -1066,6 +1066,8 @@ dynamic_driver_init(isc_mem_t *mctx, const char *name, const char * const *argv,
cleanup:
if (ldap_db != NULL)
destroy_ldap_db(&ldap_db);
+ if (ldap_cache != NULL)
+ destroy_ldap_cache(&ldap_cache);
return result;
}