From: Pierangelo Masarati Date: Thu, 28 Dec 2006 10:32:46 +0000 (+0000) Subject: fix filter structure leak (ITS#4794) X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~301 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd33fc86788281bde4a54b77a996c18d7940bd68;p=openldap fix filter structure leak (ITS#4794) --- diff --git a/servers/slapd/filter.c b/servers/slapd/filter.c index fd163e19ac..3bd61e0a3c 100644 --- a/servers/slapd/filter.c +++ b/servers/slapd/filter.c @@ -1001,7 +1001,7 @@ get_simple_vrFilter( } if ( err == LDAP_SUCCESS ) { - *filt = ch_malloc( sizeof vrf ); + *filt = op->o_tmpalloc( sizeof vrf, op->o_tmpmemctx ); **filt = vrf; }