From: Howard Chu Date: Wed, 4 Jun 2014 21:02:06 +0000 (-0700) Subject: ITS#7872 plug memleak of matchedDN X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4afa10d059552ba126324241377b2c757e3045a2;p=openldap ITS#7872 plug memleak of matchedDN --- diff --git a/servers/slapd/back-mdb/dn2entry.c b/servers/slapd/back-mdb/dn2entry.c index 7726379639..230207de60 100644 --- a/servers/slapd/back-mdb/dn2entry.c +++ b/servers/slapd/back-mdb/dn2entry.c @@ -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;