]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/thread.c
Plug memory leak
[openldap] / servers / slapd / back-monitor / thread.c
index cf9cebcdadd3dbb94ae2f3a45f5eab7ba84a1891..112ada7efc844f80229df0d06882ea493c44b70e 100644 (file)
@@ -1,12 +1,9 @@
 /* thread.c - deal with thread subsystem */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */
 /*
- * Copyright 2001 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
- * 
  * Copyright 2001, Pierangelo Masarati, All rights reserved. <ando@sys-net.it>
  * 
  * This work has beed deveolped for the OpenLDAP Foundation 
@@ -57,16 +54,16 @@ monitor_subsys_thread_init(
        mi = ( struct monitorinfo * )be->be_private;
 
        if ( monitor_cache_get( mi, 
-               monitor_subsys[SLAPD_MONITOR_THREAD].mss_ndn, &e ) )
+               &monitor_subsys[SLAPD_MONITOR_THREAD].mss_ndn, &e ) )
        {
 #ifdef NEW_LOGGING
-               LDAP_LOG(( "operation", LDAP_LEVEL_CRIT,
+               LDAP_LOG( OPERATION, CRIT,
                        "monitor_subsys_thread_init: unable to get entry '%s'\n",
-                       monitor_subsys[SLAPD_MONITOR_THREAD].mss_ndn->bv_val ));
+                       monitor_subsys[SLAPD_MONITOR_THREAD].mss_ndn.bv_val, 0, 0 );
 #else
                Debug( LDAP_DEBUG_ANY,
                        "monitor_subsys_thread_init: unable to get entry '%s'\n",
-                       monitor_subsys[SLAPD_MONITOR_THREAD].mss_ndn->bv_val, 
+                       monitor_subsys[SLAPD_MONITOR_THREAD].mss_ndn.bv_val, 
                        0, 0 );
 #endif
                return( -1 );