aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c1
1 files changed, 1 insertions, 0 deletions
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) {