]> git.sur5r.net Git - openldap/commitdiff
plug leak
authorPierangelo Masarati <ando@openldap.org>
Tue, 28 Aug 2007 23:56:18 +0000 (23:56 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 28 Aug 2007 23:56:18 +0000 (23:56 +0000)
servers/slapd/back-bdb/modrdn.c

index 21954bafbd4c8d1a626b4182362cf0717d869087..bb6dea16f3fdd2827c07a187c993ba3aa15d1c9a 100644 (file)
@@ -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",