From: Pierangelo Masarati Date: Mon, 8 Aug 2005 19:41:10 +0000 (+0000) Subject: fix yet another leak (not related to ITS#3914, though) X-Git-Tag: OPENLDAP_AC_BP~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=47351e3b5cbb8d32db1342994517c1efc6480d9d;p=openldap fix yet another leak (not related to ITS#3914, though) --- diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index 0e245a367d..19c18add90 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -370,6 +370,7 @@ rwm_op_compare( Operation *op, SlapReply *rs ) if ( mapped_vals[ 0 ].bv_val != op->orc_ava->aa_value.bv_val ) { ber_bvreplace_x( &op->orc_ava->aa_value, &mapped_vals[0], op->o_tmpmemctx ); + ber_memfree_x( mapped_vals[ 0 ].bv_val, NULL ); } } op->orc_ava->aa_desc = ad;