Skip to content

SSHFS process channel leaks #4952

Description

@ricab

Describe the bug
The SFTP session releases the ssh_channel on the SSHFS process, but it never frees it. Ownership is transferred but not properly adopted. Libssh's sftp_server_new doesn't transfer ownership and sftp_server_free does not free the channel.

sftp_server_session{make_sftp_session(ssh_session, sshfs_process->release_channel())},

mp::SftpServer::SftpSessionUptr sftp_server_session{sftp_server_new(session, channel),
sftp_server_free};

Metadata

Metadata

Assignees

Labels

jiraCreate a Jira ticket for this issuelowLow priority. Combine with "medium" to signal intermediate low-medium priority.mediumMedium priority. Combine with "low" or "high" to signal intermediate priority.

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions