mirror of
https://github.com/curl/curl.git
synced 2026-06-22 00:25:38 +03:00
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:
parent
cd4e6fbcac
commit
4f8ebd1673
1 changed files with 1 additions and 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue