mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-27 13:21:11 +03:00
sftp: Fix memory leak in sftp_free() on server.
Thanks to Tom Judge for the report.
This commit is contained in:
@@ -242,6 +242,9 @@ void sftp_free(sftp_session sftp){
|
|||||||
}
|
}
|
||||||
|
|
||||||
ssh_channel_free(sftp->channel);
|
ssh_channel_free(sftp->channel);
|
||||||
|
|
||||||
|
SAFE_FREE(sftp->handles);
|
||||||
|
|
||||||
sftp_ext_free(sftp->ext);
|
sftp_ext_free(sftp->ext);
|
||||||
ZERO_STRUCTP(sftp);
|
ZERO_STRUCTP(sftp);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user