From: Hallvard Furuseth Date: Sun, 4 Apr 1999 21:53:39 +0000 (+0000) Subject: plug memory leak of li->li_nextid_file X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~251 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2915ed56db1a7a3b6af471249a29ce061062b628;p=openldap plug memory leak of li->li_nextid_file --- diff --git a/servers/slapd/back-ldbm/config.c b/servers/slapd/back-ldbm/config.c index ad3053e36c..af385a1488 100644 --- a/servers/slapd/back-ldbm/config.c +++ b/servers/slapd/back-ldbm/config.c @@ -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 );