]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slapcommon.c
reduce code duplication
[openldap] / servers / slapd / slapcommon.c
index 7c948a809d9cc42fc332982d13869259a5ff4c3f..71870e745c068a098c9ca2ef9c889c9da0998edb 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2009 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
  * Portions Copyright 1998-2003 Kurt D. Zeilenga.
  * Portions Copyright 2003 IBM Corporation.
  * All rights reserved.
@@ -763,6 +763,11 @@ startup:;
                conffile = NULL;
        }
 
+       if ( confdir != NULL ) {
+               ch_free( confdir );
+               confdir = NULL;
+       }
+
        if ( ldiffile != NULL ) {
                ch_free( ldiffile );
                ldiffile = NULL;