]> granicus.if.org Git - curl/commitdiff
unicode NTLM SSPI: cleanup follow-up
authorYang Tse <yangsita@gmail.com>
Thu, 5 Jul 2012 21:41:47 +0000 (23:41 +0200)
committerYang Tse <yangsita@gmail.com>
Thu, 5 Jul 2012 21:41:47 +0000 (23:41 +0200)
lib/curl_schannel.c

index 43c00668530aea8e8ef28a95b031498cc4e0e11d..0a2e398ebf787ef6670ea05b6c5642dd8129cf59 100644 (file)
@@ -1269,7 +1269,7 @@ static CURLcode verify_certificate(struct connectdata *conn, int sockindex)
         failf(data, "schannel: CertGetNameString() certificate hostname "
               "(%s) did not match connection (%s)",
               _cert_hostname, conn->host.name);
-        Curl_safefree(_cert_hostname);
+        Curl_unicodefree(_cert_hostname);
       }
       Curl_unicodefree(hostname.tchar_ptr);
     }