aboutsummaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2019-02-16 22:30:31 +0100
committerDaniel Gustafsson <daniel@yesql.se>2019-02-16 22:30:31 +0100
commit0299b262cd9c75adab546f4851c03995d98d61e1 (patch)
tree2e928de5eddeb5ae4f2757ce868709d8e0458c7b /lib/tftp.c
parent188036ca58e63443f4430e035f5c535dce772e40 (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 'lib/tftp.c')
0 files changed, 0 insertions, 0 deletions