diff options
author | Daniel Gustafsson <daniel@yesql.se> | 2018-10-26 15:39:15 +0200 |
---|---|---|
committer | Daniel Gustafsson <daniel@yesql.se> | 2018-10-26 15:39:15 +0200 |
commit | 5c8c310edb1e5dbf41c5d2d68622b63f7700488e (patch) | |
tree | 1a632e1c7280eb26ada180e17183d13a796766ee /tests/README | |
parent | a0c2779d613f76a16e49aeba9a199c6d33c168b3 (diff) |
ssh: free the session on init failures
Ensure to clear the session object in case the libssh2 initialization
fails.
It could be argued that the libssh2 error function should be called to
get a proper error message in this case. But since the only error path
in libssh2_knownhost_init() is memory a allocation failure it's safest
to avoid since the libssh2 error handling allocates memory.
Closes #3179
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Diffstat (limited to 'tests/README')
0 files changed, 0 insertions, 0 deletions