From 4afa10d059552ba126324241377b2c757e3045a2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 4 Jun 2014 14:02:06 -0700 Subject: [PATCH] ITS#7872 plug memleak of matchedDN --- servers/slapd/back-mdb/dn2entry.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5