plug leak when presence filter with undef attr (ITS#6635)

This commit is contained in:
Pierangelo Masarati 2010-08-29 16:27:08 +00:00
parent eb11ba008c
commit 9146659c6c

View 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: