From: Kurt Spanier Date: Wed, 7 Apr 1999 13:17:39 +0000 (+0000) Subject: Introduce free'ing of key into ldbm_nextkey() (no need for free'ing in X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~226 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2206a55064ed0df3b2be6b4e3ae0c6817eead131;p=openldap Introduce free'ing of key into ldbm_nextkey() (no need for free'ing in clients). --- diff --git a/servers/slapd/back-bdb2/txn.c b/servers/slapd/back-bdb2/txn.c index f6176ab119..5b53850595 100644 --- a/servers/slapd/back-bdb2/txn.c +++ b/servers/slapd/back-bdb2/txn.c @@ -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 ) {