From bb13266a15f5193b2fc336503badac73a32093ee Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 20 Sep 2003 05:55:48 +0000 Subject: [PATCH] Plug memleak in slap_parseURI --- servers/slapd/saslauthz.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */