From d4e291e00ad9cf4e37cdabc2c4cd0e67319b9910 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Thu, 14 Jan 2021 17:09:37 +0100 Subject: Schannel: plug a memory-leak --- lib/vtls/schannel_verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtls/schannel_verify.c b/lib/vtls/schannel_verify.c index 31b3b2f02..2a6049e0e 100644 --- a/lib/vtls/schannel_verify.c +++ b/lib/vtls/schannel_verify.c @@ -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; } -- cgit v1.2.1