ssh.c
19.3 KB
-
transports: ssh: clean up after libssh2 on exit · 2ce2a48f
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.
Patrick Steinhardt committed