transports: ssh: clean up after libssh2 on exit
After calling `libssh2_init`, we need to clean up after the library by executing `libssh2_exit` as soon as we exit. Register a shutdown handler to do so which simply calls `libssh2_exit`. This fixes several memory leaks.
Showing
Please
register
or
sign in
to comment