From 4f8ebd167358a8485004d7bce8bc138b5d4d24ee Mon Sep 17 00:00:00 2001 From: James Housley Date: Fri, 8 Jun 2007 16:19:21 +0000 Subject: Curl_scp_done() needs to call libssh2_channel_free() to prevent a memory leak, and it is the right thing to do. --- lib/ssh.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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) { -- cgit v1.2.3