mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
malloc cleanup
This commit is contained in:
parent
140b33927f
commit
8b53a1f0bb
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ bdb_cf_gen(ConfigArgs *c)
|
|||
|
||||
/* See if a DB_CONFIG file already exists here */
|
||||
bdb->bi_db_config_path = ch_malloc( strlen( bdb->bi_dbenv_home ) +
|
||||
STRLENOF(LDAP_DIRSEP) + STRLENOF("DB_CONFIG"));
|
||||
STRLENOF(LDAP_DIRSEP) + STRLENOF("DB_CONFIG") + 1 );
|
||||
ptr = lutil_strcopy( bdb->bi_db_config_path, bdb->bi_dbenv_home );
|
||||
*ptr++ = LDAP_DIRSEP[0];
|
||||
strcpy( ptr, "DB_CONFIG" );
|
||||
|
|
|
|||
Loading…
Reference in a new issue