]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
schannel: plug a memory-leak
authorGisle Vanem <gisle.vanem@gmail.com>
Thu, 14 Jan 2021 16:09:37 +0000 (17:09 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 14 Jan 2021 21:59:56 +0000 (22:59 +0100)
... when built without -DUNICODE.

Closes #6457

lib/vtls/schannel_verify.c

index 31b3b2f02f819765a328b6c2e733cf515d951fe3..2a6049e0e059b3b71d2e45758400ce92724ae75a 100644 (file)
@@ -522,7 +522,7 @@ static CURLcode verify_host(struct Curl_easy *data,
     failf(data, "schannel: server certificate name verification failed");
 
 cleanup:
-  curlx_unicodefree(cert_hostname_buff);
+  curl_safefree(cert_hostname_buff);
 
   return result;
 }