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

index 96d8ac78fe327725d44e0df1e51f9acd9e38bc89..cba06e6b29f61377741f6150c8693bcf5eec4eee 100644 (file)
@@ -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;
 }