]> git.sur5r.net Git - openldap/commitdiff
fix one-time leak
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Apr 2009 11:36:12 +0000 (11:36 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Apr 2009 11:36:12 +0000 (11:36 +0000)
servers/slapd/slapcommon.c

index 6ae9d1946959414afb68fb7cc93e2b3aeeb34669..1cf60a4260f78be7c6d676f16e8cf94ad2f22c26 100644 (file)
@@ -649,6 +649,8 @@ slap_tool_init(
                        nosubordinates = 1;
                }
 
+               ch_free( base.bv_val );
+
        } else if ( dbnum == -1 ) {
                /* no suffix and no dbnum specified, just default to
                 * the first available database