From 2915ed56db1a7a3b6af471249a29ce061062b628 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 4 Apr 1999 21:53:39 +0000 Subject: [PATCH] plug memory leak of li->li_nextid_file --- servers/slapd/back-ldbm/config.c | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.39.5