diff options
author | James Housley <jim@thehousleys.net> | 2007-06-08 16:19:21 +0000 |
---|---|---|
committer | James Housley <jim@thehousleys.net> | 2007-06-08 16:19:21 +0000 |
commit | 4f8ebd167358a8485004d7bce8bc138b5d4d24ee (patch) | |
tree | 84bdf4a40a48f4d167ee82a9e6453f65650b127f | |
parent | cd4e6fbcacc41de714a8f485d64789f013f755d7 (diff) | |
download | curl-4f8ebd167358a8485004d7bce8bc138b5d4d24ee.tar.gz |
Curl_scp_done() needs to call libssh2_channel_free() to prevent a
memory leak, and it is the right thing to do.
-rw-r--r-- | lib/ssh.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -755,6 +755,7 @@ CURLcode Curl_scp_done(struct connectdata *conn, CURLcode status, infof(conn->data, "Failed to stop libssh2 channel subsystem\n"); } #endif /* !(LIBSSH2_APINO >= 200706012030) */ + libssh2_channel_free(scp->ssh_channel); } if (scp->ssh_session) { |