]> git.sur5r.net Git - openldap/commitdiff
ITS#6398: plug memory leak of confdir
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Nov 2009 21:52:11 +0000 (21:52 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Nov 2009 21:52:11 +0000 (21:52 +0000)
servers/slapd/slapcommon.c

index 7c948a809d9cc42fc332982d13869259a5ff4c3f..f3cf2de504bd28649ba9fe3a5e69a15de14b292e 100644 (file)
@@ -763,6 +763,11 @@ startup:;
                conffile = NULL;
        }
 
+       if ( confdir != NULL ) {
+               ch_free( confdir );
+               confdir = NULL;
+       }
+
        if ( ldiffile != NULL ) {
                ch_free( ldiffile );
                ldiffile = NULL;