Skip to content

Commit 4f5bc0d

Browse files
committed
session: Do not free session at close
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent 65ea3a7 commit 4f5bc0d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/pylibsshext/session.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,6 @@ cdef class Session(object):
539539
if self._libssh_session is not NULL:
540540
if libssh.ssh_is_connected(self._libssh_session):
541541
libssh.ssh_disconnect(self._libssh_session)
542-
libssh.ssh_free(self._libssh_session)
543-
self._libssh_session = NULL
544542

545543
def set_missing_host_key_policy(self, policy):
546544
"""The policy to use if the know host key is missing.

0 commit comments

Comments
 (0)