1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

schannel: plug a memory-leak

... when built without -DUNICODE.

Closes #6457
This commit is contained in:
Gisle Vanem 2021-01-14 17:09:37 +01:00 committed by Daniel Stenberg
parent 70c4fad734
commit e87ad71d1b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

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