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
1 changed files with 1 additions and 1 deletions

View 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;
}