]> git.sur5r.net Git - openldap/commitdiff
don't leak generated filters (ITS#5826)
authorPierangelo Masarati <ando@openldap.org>
Sat, 22 Nov 2008 18:38:37 +0000 (18:38 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 22 Nov 2008 18:38:37 +0000 (18:38 +0000)
servers/slapd/syncrepl.c

index 2bdb2d683b4b571ffb58f1e0c8140588e2be82d9..6485acf761e0960acfd254ecb356834de30b80da 100644 (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 );
+               }
 
        }