mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Introduce free'ing of key into ldbm_nextkey() (no need for free'ing in
clients).
This commit is contained in:
parent
85df05d3d6
commit
2206a55064
1 changed files with 1 additions and 0 deletions
|
|
@ -652,6 +652,7 @@ bdb2i_db_nextkey( LDBM ldbm, Datum key, DBC *dbcp )
|
|||
int rc;
|
||||
|
||||
ldbm_datum_init( data );
|
||||
ldbm_datum_free( ldbm, key );
|
||||
key.flags = data.flags = DB_DBT_MALLOC;
|
||||
|
||||
if ( (*dbcp->c_get)( dbcp, &key, &data, DB_NEXT ) == 0 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue