]> git.sur5r.net Git - openldap/commitdiff
fix filter structure leak (ITS#4794)
authorPierangelo Masarati <ando@openldap.org>
Thu, 28 Dec 2006 10:32:46 +0000 (10:32 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 28 Dec 2006 10:32:46 +0000 (10:32 +0000)
servers/slapd/filter.c

index fd163e19ac1bf8ad6d955678bb31ee7090a611fb..3bd61e0a3c27344917eafd925f953e674f629b45 100644 (file)
@@ -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;
        }