From 5354f2d4e6a8226bef82655026c645f0c5be00e2 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 6 Jan 2006 16:22:47 +0000 Subject: [PATCH] plug one-time leaks --- servers/slapd/aclparse.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.39.5