]> git.sur5r.net Git - openldap/commitdiff
plug one-time leaks
authorPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 16:22:47 +0000 (16:22 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 6 Jan 2006 16:22:47 +0000 (16:22 +0000)
servers/slapd/aclparse.c

index 130629099896b545200ad6dfb0c2a1b26d0c5bf1..188aa0b6d23ddb9034ca04deb330df398d978be3 100644 (file)
@@ -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;