mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04: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
@ -755,6 +755,7 @@ CURLcode Curl_scp_done(struct connectdata *conn, CURLcode status,
|
|||||||
infof(conn->data, "Failed to stop libssh2 channel subsystem\n");
|
infof(conn->data, "Failed to stop libssh2 channel subsystem\n");
|
||||||
}
|
}
|
||||||
#endif /* !(LIBSSH2_APINO >= 200706012030) */
|
#endif /* !(LIBSSH2_APINO >= 200706012030) */
|
||||||
|
libssh2_channel_free(scp->ssh_channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scp->ssh_session) {
|
if (scp->ssh_session) {
|
||||||
|
Loading…
Reference in New Issue
Block a user