From bbd238e38b7e6cbb61dd5d1d908f9391a288347b Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 23 Nov 2009 21:52:11 +0000 Subject: [PATCH] ITS#6398: plug memory leak of confdir --- servers/slapd/slapcommon.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index 7c948a809d..f3cf2de504 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -763,6 +763,11 @@ startup:; conffile = NULL; } + if ( confdir != NULL ) { + ch_free( confdir ); + confdir = NULL; + } + if ( ldiffile != NULL ) { ch_free( ldiffile ); ldiffile = NULL; -- 2.39.5