mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-24 15:52:54 -05:00
plug memory leak of li->li_nextid_file
This commit is contained in:
parent
db859cee36
commit
2915ed56db
1 changed files with 2 additions and 0 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue