]> git.sur5r.net Git - openldap/commitdiff
plug leak when presence filter with undef attr (ITS#6635)
authorPierangelo Masarati <ando@openldap.org>
Sun, 29 Aug 2010 16:27:08 +0000 (16:27 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 29 Aug 2010 16:27:08 +0000 (16:27 +0000)
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: