summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ldap.c5
1 files changed, 1 insertions, 4 deletions
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;
}