Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Fix memory leak in ssh client
Browse files Browse the repository at this point in the history
  • Loading branch information
uglide committed Nov 28, 2017
1 parent 8e84f8e commit ad4a28b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions 3rdparty/qsshclient/qxtsshclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,9 @@ QxtSshClientPrivate::QxtSshClientPrivate()

}

QxtSshClientPrivate::~QxtSshClientPrivate(){
// d_reset();
// if(d_session){
// libssh2_knownhost_free(d_knownHosts);
// libssh2_session_free(d_session);
// }
QxtSshClientPrivate::~QxtSshClientPrivate()
{
d_tearDown();
}

void QxtSshClientPrivate::d_tearDown()
Expand Down

0 comments on commit ad4a28b

Please sign in to comment.