diff options
author | Daniel Gustafsson <daniel@yesql.se> | 2019-02-16 22:30:31 +0100 |
---|---|---|
committer | Daniel Gustafsson <daniel@yesql.se> | 2019-02-16 22:30:31 +0100 |
commit | 0299b262cd9c75adab546f4851c03995d98d61e1 (patch) | |
tree | 2e928de5eddeb5ae4f2757ce868709d8e0458c7b /tests/data/test809 | |
parent | 188036ca58e63443f4430e035f5c535dce772e40 (diff) |
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: MichaĆ Antoniak <M.Antoniak@posnet.com>
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Diffstat (limited to 'tests/data/test809')
0 files changed, 0 insertions, 0 deletions