mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
schannel: plug a memory-leak
... when built without -DUNICODE. Closes #6457
This commit is contained in:
parent
70c4fad734
commit
e87ad71d1b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user