From: Gisle Vanem Date: Thu, 14 Jan 2021 16:09:37 +0000 (+0100) Subject: schannel: plug a memory-leak X-Git-Tag: curl-7_75_0~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e87ad71d1ba00519bc96dd67b9621911aefcdb84;p=thirdparty%2Fcurl.git schannel: plug a memory-leak ... when built without -DUNICODE. Closes #6457 --- diff --git a/lib/vtls/schannel_verify.c b/lib/vtls/schannel_verify.c index 31b3b2f02f..2a6049e0e0 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; }