From 408e33960f1052a24bc0fc31f4dfe13d139ae213 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Tue, 24 Mar 2009 13:00:07 +0100 Subject: Free the LDAP cache if something goes wrong. --- ldap_driver.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit