diff options
author | James Housley <jim@thehousleys.net> | 2007-07-18 18:31:34 +0000 |
---|---|---|
committer | James Housley <jim@thehousleys.net> | 2007-07-18 18:31:34 +0000 |
commit | ca1356702a64ee4c80a076d74c84f649b425644a (patch) | |
tree | 27f4b32c74680a659a7da216277ccf2615d91a88 | |
parent | 89d119646d124c642b5b4d39227e69314e2b7879 (diff) |
As has been pointed out, err_msg should not be freed here. The actual
issue is in libssh2 and not freeing a dynamic error message during cleanup.
-rw-r--r-- | lib/ssh.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1643,7 +1643,6 @@ static CURLcode ssh_statemach_act(struct connectdata *conn) &err_msg, NULL, 0); err = libssh2_session_error_to_CURLE(ssh_err); failf(conn->data, "%s", err_msg); - Curl_safefree(err_msg); state(conn, SSH_SCP_CHANNEL_FREE); sshc->actualCode = err; break; @@ -1686,7 +1685,6 @@ static CURLcode ssh_statemach_act(struct connectdata *conn) &err_msg, NULL, 0); err = libssh2_session_error_to_CURLE(ssh_err); failf(conn->data, "%s", err_msg); - Curl_safefree(err_msg); state(conn, SSH_SCP_CHANNEL_FREE); sshc->actualCode = err; break; |