schannel: fix memory leak during handshake

Follow-up to b6a5f672 which improved the handshake procedure.

Ref: https://github.com/curl/curl/pull/18323

Closes https://github.com/curl/curl/pull/18410
This commit is contained in:
Jay Satiro 2025-08-26 22:33:38 -04:00
parent d77a23c263
commit b9be9f9466

View file

@ -1246,6 +1246,7 @@ schannel_connect_step2(struct Curl_cfilter *cf, struct Curl_easy *data)
if(!SOCKET_WRITABLE(Curl_conn_cf_get_socket(cf, data), 0)) {
SCH_DEV(infof(data, "schannel: handshake waiting for writeable socket"));
connssl->io_need = CURL_SSL_IO_NEED_SEND;
free(inbuf[0].pvBuffer);
return CURLE_OK;
}