]> granicus.if.org Git - curl/commitdiff
ldap: Fix memory leak from commit 3a805c5cc1
authorSteve Holme <steve_holme@hotmail.com>
Sun, 4 Jan 2015 20:06:04 +0000 (20:06 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 4 Jan 2015 20:06:04 +0000 (20:06 +0000)
lib/ldap.c

index f9b287cbf5c3d86f855f7160562c196cd5367d33..96d8ac78fe327725d44e0df1e51f9acd9e38bc89 100644 (file)
@@ -842,6 +842,8 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
 
       ludp->lud_attrs_dups++;
     }
+
+    Curl_safefree(attributes);
   }
 
   p = q;