]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-mdb/operational.c
Happy New Year!
[openldap] / servers / slapd / back-mdb / operational.c
index 4937984b7f345382121c71d50c2751bdc29e4a54..60a73dd2e9c3a16ec048d08714890250190fe570 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * 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
@@ -76,6 +76,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--;
        }
        return rc;
 }