]> git.sur5r.net Git - openldap/commitdiff
plug memory leak of li->li_nextid_file
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 4 Apr 1999 21:53:39 +0000 (21:53 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 4 Apr 1999 21:53:39 +0000 (21:53 +0000)
servers/slapd/back-ldbm/config.c

index ad3053e36cd588e3f71dd27f5e17a541eb7a7f0d..af385a14883623a1c38d67d8243a88a1c661a1c6 100644 (file)
@@ -39,6 +39,8 @@ ldbm_back_db_config(
                        free( li->li_directory );
                li->li_directory = ch_strdup( argv[1] );
 
+               if ( li->li_nextid_file )
+                       free( li->li_nextid_file );
                li->li_nextid_file =
                        ch_malloc( strlen(li->li_directory) + sizeof("/NEXTID") + 1 );