From: Howard Chu Date: Sat, 20 Sep 2003 05:55:48 +0000 (+0000) Subject: Plug memleak in slap_parseURI X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~698 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bb13266a15f5193b2fc336503badac73a32093ee;p=openldap Plug memleak in slap_parseURI --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 258301e38d..b536580930 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -115,7 +115,8 @@ is_dn: bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val); { /* host part must be empty */ /* attrs and extensions parts must be empty */ - return LDAP_PROTOCOL_ERROR; + rc = LDAP_PROTOCOL_ERROR; + goto done; } /* Grab the scope */