Skip to content
Commit 0299b262 authored by Daniel Gustafsson's avatar Daniel Gustafsson
Browse files

mbedtls: release sessionid resources on error



If mbedtls_ssl_get_session() fails, it may still have allocated
memory that needs to be freed to avoid leaking. Call the library
API function to release session resources on this errorpath as
well as on Curl_ssl_addsessionid() errors.

Closes: #3574
Reported-by: default avatarMichał Antoniak <M.Antoniak@posnet.com>
Reviewed-by: default avatarDaniel Stenberg <daniel@haxx.se>
parent 188036ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment