From: Hallvard Furuseth Date: Mon, 23 Nov 2009 21:52:11 +0000 (+0000) Subject: ITS#6398: plug memory leak of confdir X-Git-Tag: ACLCHECK_0~60 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bbd238e38b7e6cbb61dd5d1d908f9391a288347b;p=openldap ITS#6398: plug memory leak of confdir --- 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;