From: Pierangelo Masarati Date: Sun, 29 Aug 2010 16:27:08 +0000 (+0000) Subject: plug leak when presence filter with undef attr (ITS#6635) X-Git-Tag: MIGRATION_CVS2GIT~503 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9146659c6c1398c9fc3f0921655549abae266cd6;p=openldap plug leak when presence filter with undef attr (ITS#6635) --- diff --git a/servers/slapd/filter.c b/servers/slapd/filter.c index ff8efa6a2a..a1d6411731 100644 --- a/servers/slapd/filter.c +++ b/servers/slapd/filter.c @@ -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: