From 47351e3b5cbb8d32db1342994517c1efc6480d9d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 8 Aug 2005 19:41:10 +0000 Subject: [PATCH] fix yet another leak (not related to ITS#3914, though) --- servers/slapd/overlays/rwm.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5