From: Pierangelo Masarati Date: Tue, 28 Aug 2007 23:56:18 +0000 (+0000) Subject: plug leak X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0bedad3b651c154a64826ef0bb23620e03babd98;p=openldap plug leak --- diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index 21954bafbd..bb6dea16f3 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -542,6 +542,8 @@ retry: /* transaction retry */ struct berval bv = {0, NULL}; dnNormalize( 0, NULL, NULL, &new_dn, &bv, op->o_tmpmemctx ); ber_dupbv( &new_ndn, &bv ); + /* FIXME: why not call dnNormalize() w/o ctx? */ + op->o_tmpfree( bv.bv_val, op->o_tmpmemctx ); } Debug( LDAP_DEBUG_TRACE, LDAP_XSTRING(bdb_modrdn) ": new ndn=%s\n",