From 2206a55064ed0df3b2be6b4e3ae0c6817eead131 Mon Sep 17 00:00:00 2001 From: Kurt Spanier Date: Wed, 7 Apr 1999 13:17:39 +0000 Subject: [PATCH] Introduce free'ing of key into ldbm_nextkey() (no need for free'ing in clients). --- servers/slapd/back-bdb2/txn.c | 1 + 1 file changed, 1 insertion(+) 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 ) { -- 2.39.5