Curl_scp_done() needs to call libssh2_channel_free() to prevent a

memory leak, and it is the right thing to do.
This commit is contained in:
James Housley 2007-06-08 16:19:21 +00:00
parent cd4e6fbcac
commit 4f8ebd1673
1 changed files with 1 additions and 0 deletions

View File

@ -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) {