Skip to content

Conversation

steven9724
Copy link
Contributor

In _git_ssh_setup_conn, known_hosts is allocated by _git_ssh_session_create. However, known_hosts is only cleaned up in the case of error.

This moves the cleanup code for known_hosts so that its run in the error an success case.

Fixes #6598

@ethomson
Copy link
Member

Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSH connections leak memory
2 participants