Introduce free'ing of key into ldbm_nextkey() (no need for free'ing in

clients).
This commit is contained in:
Kurt Spanier 1999-04-07 13:17:39 +00:00
parent 85df05d3d6
commit 2206a55064

View file

@ -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 ) {