mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
plug memory leak of li->li_nextid_file
This commit is contained in:
parent
db859cee36
commit
2915ed56db
@ -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 New Issue
Block a user