]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/auditlog.c
Plug memleak when query isn't added to cache
[openldap] / servers / slapd / overlays / auditlog.c
index 41da39cbc8510498efdc2c22a65cc02c15faaff4..441df6c68fd062f69fd30e1324523b4d50aa6878 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2005 The OpenLDAP Foundation.
+ * Copyright 2005-2006 The OpenLDAP Foundation.
  * Portions copyright 2004-2005 Symas Corporation.
  * All rights reserved.
  *
@@ -215,7 +215,7 @@ auditlog_config(
        return SLAP_CONF_UNKNOWN;
 }
 
-int auditlog_init() {
+int auditlog_initialize() {
 
        auditlog.on_bi.bi_type = "auditlog";
        auditlog.on_bi.bi_db_init = auditlog_db_init;
@@ -228,8 +228,10 @@ int auditlog_init() {
 }
 
 #if SLAPD_OVER_AUDITLOG == SLAPD_MOD_DYNAMIC && defined(PIC)
-int init_module( int argc, char *argv[]) {
-       return auditlog_init();
+int
+init_module( int argc, char *argv[] )
+{
+       return auditlog_initialize();
 }
 #endif