]> git.sur5r.net Git - openldap/commitdiff
fix yet another leak (not related to ITS#3914, though)
authorPierangelo Masarati <ando@openldap.org>
Mon, 8 Aug 2005 19:41:10 +0000 (19:41 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 8 Aug 2005 19:41:10 +0000 (19:41 +0000)
servers/slapd/overlays/rwm.c

index 0e245a367d02129fab03674c86a6698d9827f74d..19c18add906687ad16e8a7f03d43b1fc54743124 100644 (file)
@@ -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;