From 6ec65c6f9d1aefddaccf0a9816dae0b68a46ea33 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Fri, 9 Oct 2009 22:50:48 +0200 Subject: ssh_disconnect doesn't free the session anymore --- include/libssh/libssh.h | 1 + include/libssh/session.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 97e1da95..9281e0c8 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -345,6 +345,7 @@ LIBSSH_API const char *ssh_copyright(void); LIBSSH_API void ssh_disconnect(ssh_session session); LIBSSH_API char *ssh_dirname (const char *path); LIBSSH_API int ssh_finalize(void); +LIBSSH_API void ssh_free(ssh_session session); LIBSSH_API const char *ssh_get_disconnect_message(ssh_session session); LIBSSH_API const char *ssh_get_error(void *error); LIBSSH_API int ssh_get_error_code(void *error); diff --git a/include/libssh/session.h b/include/libssh/session.h index b9f425a9..c59ba5fb 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -113,6 +113,5 @@ struct ssh_session_struct { }; int ssh_handle_packets(ssh_session session); -void ssh_cleanup(ssh_session session); #endif /* SESSION_H_ */ -- cgit