summaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-06-29 23:11:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-06-29 23:13:09 +0200
commit6655e3069120cd069be9b7e2ff268342513c93bf (patch)
tree4b3170f3a52d38bbbab31bb1f2789b0afae9fbc6 /lib/ssh.c
parente89489d8f4ceb869ae4e080b34053d4ecba22955 (diff)
downloadcurl-6655e3069120cd069be9b7e2ff268342513c93bf.tar.gz
conn: don't free easy handle data in handler->disconnect
Reported-by: Gou Lingfeng Bug: https://curl.haxx.se/mail/lib-2016-06/0139.html
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index e72b7561e..7bc313622 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -3057,8 +3057,6 @@ static CURLcode scp_disconnect(struct connectdata *conn, bool dead_connection)
struct ssh_conn *ssh = &conn->proto.sshc;
(void) dead_connection;
- Curl_safefree(conn->data->req.protop);
-
if(ssh->ssh_session) {
/* only if there's a session still around to use! */
@@ -3220,8 +3218,6 @@ static CURLcode sftp_disconnect(struct connectdata *conn, bool dead_connection)
DEBUGF(infof(conn->data, "SSH DISCONNECT starts now\n"));
- Curl_safefree(conn->data->req.protop);
-
if(conn->proto.sshc.ssh_session) {
/* only if there's a session still around to use! */
state(conn, SSH_SFTP_SHUTDOWN);