From: James Housley Date: Fri, 8 Jun 2007 16:19:21 +0000 (+0000) Subject: Curl_scp_done() needs to call libssh2_channel_free() to prevent a X-Git-Tag: curl-7_16_3~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f8ebd167358a8485004d7bce8bc138b5d4d24ee;p=curl Curl_scp_done() needs to call libssh2_channel_free() to prevent a memory leak, and it is the right thing to do. --- 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) {