From: Steve Holme Date: Sun, 4 Jan 2015 20:33:58 +0000 (+0000) Subject: ldap: Fixed memory leak from commit efb64fdf80 X-Git-Tag: curl-7_40_0~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6b168de4cb28337e63d68aaea255416d10f46b0;p=curl ldap: Fixed memory leak from commit efb64fdf80 --- diff --git a/lib/ldap.c b/lib/ldap.c index 96d8ac78f..cba06e6b2 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -914,10 +914,7 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp) } quit: -#if defined(CURL_LDAP_WIN) && \ - (defined(USE_WIN32_IDN) || defined(USE_WINDOWS_SSPI)) - Curl_unicodefree(path); -#endif + Curl_safefree(path); return rc; }