aboutsummaryrefslogtreecommitdiff
path: root/lib/rtsp.h
diff options
context:
space:
mode:
authorDaniel Gustafsson <daniel@yesql.se>2018-10-26 15:39:15 +0200
committerDaniel Gustafsson <daniel@yesql.se>2018-10-26 15:39:15 +0200
commit5c8c310edb1e5dbf41c5d2d68622b63f7700488e (patch)
tree1a632e1c7280eb26ada180e17183d13a796766ee /lib/rtsp.h
parenta0c2779d613f76a16e49aeba9a199c6d33c168b3 (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 'lib/rtsp.h')
0 files changed, 0 insertions, 0 deletions