]> git.sur5r.net Git - openldap/commitdiff
plug one-time leak
authorPierangelo Masarati <ando@openldap.org>
Thu, 11 Aug 2005 23:35:47 +0000 (23:35 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 11 Aug 2005 23:35:47 +0000 (23:35 +0000)
servers/slapd/slapcommon.c

index 18cc86ca9f731e341848a5c2fd50e780791acb87..5c273c605d6d4dc1f5b13eeae25194c785b15deb 100644 (file)
@@ -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 ) {