]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/filter.c
Plug mutex/rwlock leaks (destroy them)
[openldap] / servers / slapd / filter.c
index ff8efa6a2a2a21909b9bcd1372f0f60379631b61..a1d6411731bf7b11c62582948d1cc23cfd9dc4b9 100644 (file)
@@ -521,6 +521,8 @@ filter_free_x( Operation *op, Filter *f, int freeme )
 
        switch ( f->f_choice ) {
        case LDAP_FILTER_PRESENT:
+               if ( f->f_desc->ad_flags & SLAP_DESC_TEMPORARY )
+                       op->o_tmpfree( f->f_desc, op->o_tmpmemctx );
                break;
 
        case LDAP_FILTER_EQUALITY: