]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldap/search.c
ITS#5860 - more for entry cache counts
[openldap] / servers / slapd / back-ldap / search.c
index a329a09451db9ed995a869a31c3eabc70eaa23e1..b3a68b31411e21f23fe4793354cf1e228e3138b6 100644 (file)
@@ -563,7 +563,7 @@ finish:;
                ldap_back_quarantine( op, rs );
        }
 
-       if ( freefilter ) {
+       if ( freefilter && filter.bv_val != op->ors_filterstr.bv_val ) {
                op->o_tmpfree( filter.bv_val, op->o_tmpmemctx );
        }