From 53a4d530d914296aa09db892a1b3c6fe495f0240 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 11 Aug 2005 23:35:47 +0000 Subject: [PATCH] plug one-time leak --- servers/slapd/slapcommon.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ) { -- 2.39.5