From: Pierangelo Masarati Date: Thu, 30 Apr 2009 11:36:12 +0000 (+0000) Subject: fix one-time leak X-Git-Tag: ACLCHECK_0~587 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5efa186908ff651ce2234a4ccfeb0dfd305ce674;p=openldap fix one-time leak --- diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 6ae9d19469..1cf60a4260 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -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