Skip to content
Snippets Groups Projects
Commit 2206a550 authored by Kurt Spanier's avatar Kurt Spanier
Browse files

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

clients).
parent 85df05d3
Branches
Tags
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment