X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-mdb%2Fbind.c;h=65417f29a2818c0928bdd7896cc6df69bbee5daf;hb=9b5972dc9e14e1f7a7bef755bfd0dc61bcf1ffb3;hp=0cd716e71f5fc3c17312c877f2270ae1d03e98cd;hpb=a9c945899cf839e0ad3015b3aa5b82c5b2b0d665;p=openldap diff --git a/servers/slapd/back-mdb/bind.c b/servers/slapd/back-mdb/bind.c index 0cd716e71f..65417f29a2 100644 --- a/servers/slapd/back-mdb/bind.c +++ b/servers/slapd/back-mdb/bind.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2000-2013 The OpenLDAP Foundation. + * Copyright 2000-2016 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -138,6 +138,8 @@ done: if ( moi == &opinfo ) { mdb_txn_reset( moi->moi_txn ); LDAP_SLIST_REMOVE( &op->o_extra, &moi->moi_oe, OpExtra, oe_next ); + } else { + moi->moi_ref--; } /* free entry and reader lock */ if( e != NULL ) {