]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-mdb/dn2entry.c
ITS#7912 fix index config
[openldap] / servers / slapd / back-mdb / dn2entry.c
index 8c5e14170345eb03b6775eec03dd07e017de1c9a..230207de6084d992367b9c6c702c4e01ebaae664 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-2014 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -71,6 +71,8 @@ mdb_dn2entry(
                        ber_dupbv_x( &(*e)->e_nname, dn, op->o_tmpmemctx );
                else
                        ber_dupbv_x( &(*e)->e_nname, &nmbv, op->o_tmpmemctx );
+       } else {
+               op->o_tmpfree( mbv.bv_val, op->o_tmpmemctx );
        }
 
        return rc;