aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJames Housley <jim@thehousleys.net>2007-06-08 16:19:21 +0000
committerJames Housley <jim@thehousleys.net>2007-06-08 16:19:21 +0000
commit4f8ebd167358a8485004d7bce8bc138b5d4d24ee (patch)
tree84bdf4a40a48f4d167ee82a9e6453f65650b127f /lib
parentcd4e6fbcacc41de714a8f485d64789f013f755d7 (diff)
Curl_scp_done() needs to call libssh2_channel_free() to prevent a
memory leak, and it is the right thing to do.
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 184a74b69..bb8f513b5 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -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) {