don't leak generated filters (ITS#5826)

This commit is contained in:
Pierangelo Masarati 2008-11-22 18:38:37 +00:00
parent 15236be495
commit 970a60002f

View File

@ -2451,6 +2451,9 @@ syncrepl_del_nonpresent(
op->ors_filter = of;
}
if ( op->ors_filter ) filter_free_x( op, op->ors_filter, 1 );
if ( op->ors_filterstr.bv_val != si->si_filterstr.bv_val ) {
op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
}
}