1
0
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:
Andreas Schneider
2012-02-04 20:55:34 +01:00
parent a311ec32b1
commit 47226d9d44

View File

@@ -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);