From 9146659c6c1398c9fc3f0921655549abae266cd6 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 29 Aug 2010 16:27:08 +0000 Subject: [PATCH] plug leak when presence filter with undef attr (ITS#6635) --- servers/slapd/filter.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.39.5