]> git.sur5r.net Git - openldap/commitdiff
Introduce free'ing of key into ldbm_nextkey() (no need for free'ing in
authorKurt Spanier <ksp@openldap.org>
Wed, 7 Apr 1999 13:17:39 +0000 (13:17 +0000)
committerKurt Spanier <ksp@openldap.org>
Wed, 7 Apr 1999 13:17:39 +0000 (13:17 +0000)
clients).

servers/slapd/back-bdb2/txn.c

index f6176ab1196a0d1642b65c14d7ed9477d3cc516f..5b53850595dee5d0a1d51074ddc41f37587ab9de 100644 (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 ) {