From: Steve Holme Date: Sun, 4 Jan 2015 20:06:04 +0000 (+0000) Subject: ldap: Fix memory leak from commit 3a805c5cc1 X-Git-Tag: curl-7_40_0~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4113ad50e437d78e9818aa17f816c06c38f0a458;p=thirdparty%2Fcurl.git ldap: Fix memory leak from commit 3a805c5cc1 --- diff --git a/lib/ldap.c b/lib/ldap.c index f9b287cbf5..96d8ac78fe 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -842,6 +842,8 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp) ludp->lud_attrs_dups++; } + + Curl_safefree(attributes); } p = q;