From: Pierangelo Masarati Date: Fri, 6 Jan 2006 16:22:47 +0000 (+0000) Subject: plug one-time leaks X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~442 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5354f2d4e6a8226bef82655026c645f0c5be00e2;p=openldap plug one-time leaks --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 1306290998..188aa0b6d2 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -2461,6 +2461,14 @@ acl_free( AccessControl *a ) free( an->an_name.bv_val ); } free( a->acl_attrs ); + + if ( a->acl_attrval_style == ACL_STYLE_REGEX ) { + regfree( &a->acl_attrval_re ); + } + + if ( !BER_BVISNULL( &a->acl_attrval ) ) { + ber_memfree( a->acl_attrval.bv_val ); + } } for ( ; a->acl_access; a->acl_access = n ) { n = a->acl_access->a_next;