aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-04 20:55:34 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-04 21:06:37 +0100
commit47226d9d448966d9d9bd8d1786d4b4427a787be9 (patch)
tree51ed9006f50d8230242de7488b9015908814b057
parenta311ec32b1146a6fbf8561931f065e4c78ae7a10 (diff)
downloadlibssh-47226d9d448966d9d9bd8d1786d4b4427a787be9.tar.gz
libssh-47226d9d448966d9d9bd8d1786d4b4427a787be9.tar.xz
libssh-47226d9d448966d9d9bd8d1786d4b4427a787be9.zip
sftp: Fix memory leak in sftp_free() on server.
Thanks to Tom Judge for the report.
-rw-r--r--src/sftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sftp.c b/src/sftp.c
index a224112..81fa1d8 100644
--- a/src/sftp.c
+++ b/src/sftp.c
@@ -242,6 +242,9 @@ void sftp_free(sftp_session sftp){
}
ssh_channel_free(sftp->channel);
+
+ SAFE_FREE(sftp->handles);
+
sftp_ext_free(sftp->ext);
ZERO_STRUCTP(sftp);