From: Howard Chu Date: Sun, 2 Apr 2006 21:16:06 +0000 (+0000) Subject: plug leaks X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c63d1f04f8d5e8ff9589c531a7c1c69803cd503f;p=openldap plug leaks --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 37fbd565f3..f44a786b5e 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -340,7 +340,7 @@ parse_acl( Debug( LDAP_DEBUG_ANY, "%s: line %d: " "only one to clause allowed in access line\n", fname, lineno, 0 ); - return acl_usage(); + goto fail; } a = (AccessControl *) ch_calloc( 1, sizeof(AccessControl) ); for ( ++i; i < argc; i++ ) { @@ -756,7 +756,7 @@ parse_acl( "%s: line %d: empty level " "in \"level{n}\"\n", fname, lineno, 0 ); - return acl_usage(); + goto fail; } p[0] = '\0'; }