From: Pierangelo Masarati Date: Thu, 11 Aug 2005 23:35:47 +0000 (+0000) Subject: plug one-time leak X-Git-Tag: OPENLDAP_AC_BP~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=53a4d530d914296aa09db892a1b3c6fe495f0240;p=openldap plug one-time leak --- diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 18cc86ca9f..5c273c605d 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -586,6 +586,14 @@ startup:; mal_leaktrace(1); #endif + if ( conffile != NULL ) { + ch_free( conffile ); + } + + if ( ldiffile != NULL ) { + ch_free( ldiffile ); + } + /* slapdn doesn't specify a backend to startup */ if ( !dryrun && tool != SLAPDN && slap_startup( be ) ) { switch ( tool ) {