diff options
author | Gisle Vanem <gisle.vanem@gmail.com> | 2021-01-14 17:09:37 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-01-14 22:59:56 +0100 |
commit | e87ad71d1ba00519bc96dd67b9621911aefcdb84 (patch) | |
tree | 10ebd9a2273e1ae5ecfebdf1d54013fa4336673e | |
parent | 70c4fad73420d34e15234408ce26f59f04d99b3b (diff) | |
download | curl-e87ad71d1ba00519bc96dd67b9621911aefcdb84.tar.gz |
schannel: plug a memory-leak
... when built without -DUNICODE.
Closes #6457
-rw-r--r-- | lib/vtls/schannel_verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |