]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/auditlog.c
Happy New Year
[openldap] / servers / slapd / overlays / auditlog.c
index ce3f4a4848a0ccb2bad7b33117d95c6fd83038bd..3c87b618ee1d8806ef97857b7f28c9512ea5a75a 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2005-2013 The OpenLDAP Foundation.
+ * Copyright 2005-2018 The OpenLDAP Foundation.
  * Portions copyright 2004-2005 Symas Corporation.
  * All rights reserved.
  *
@@ -199,20 +199,6 @@ auditlog_db_init(
        return 0;
 }
 
-static int
-auditlog_db_close(
-       BackendDB *be,
-       ConfigReply *cr
-)
-{
-       slap_overinst *on = (slap_overinst *)be->bd_info;
-       auditlog_data *ad = on->on_bi.bi_private;
-
-       free( ad->ad_logfile );
-       ad->ad_logfile = NULL;
-       return 0;
-}
-
 static int
 auditlog_db_destroy(
        BackendDB *be,
@@ -223,6 +209,7 @@ auditlog_db_destroy(
        auditlog_data *ad = on->on_bi.bi_private;
 
        ldap_pvt_thread_mutex_destroy( &ad->ad_mutex );
+       free( ad->ad_logfile );
        free( ad );
        return 0;
 }
@@ -232,7 +219,6 @@ int auditlog_initialize() {
 
        auditlog.on_bi.bi_type = "auditlog";
        auditlog.on_bi.bi_db_init = auditlog_db_init;
-       auditlog.on_bi.bi_db_close = auditlog_db_close;
        auditlog.on_bi.bi_db_destroy = auditlog_db_destroy;
        auditlog.on_response = auditlog_response;