mbedtls: fix memory leak in error path
Add missing our_ssl_sessionid free call in mbed_connect_step3(). Closes #1417
This commit is contained in:
Родитель
9168e2470d
Коммит
fc347820a2
|
@ -697,6 +697,7 @@ mbed_connect_step3(struct connectdata *conn,
|
|||
|
||||
ret = mbedtls_ssl_get_session(&connssl->ssl, our_ssl_sessionid);
|
||||
if(ret) {
|
||||
free(our_ssl_sessionid);
|
||||
failf(data, "mbedtls_ssl_get_session returned -0x%x", -ret);
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче