This month's Index
Subject: memory leak after upgrade from 1.4.3 to 1.6.0
memory leak after upgrade from 1.4.3 to 1.6.0
From: suyog jadhav <suyogjadhav_at_yahoo.com>
Date: Thu, 21 Jan 2016 08:02:59 +0000 (UTC)
we have been using libssh2 library in our project for some time. (since 1.2 release)
We remotely monitor multiple remote hosts (100+), and do following.
We were using 1.4.3 version of the library until now and everything was working fine.
Recently we have upgraded library to 1.6.0 and we are seeing memory growth/leak in the process.
Our valgrind analysis shows that the leak is in the "libssh2_session_init_ex (session.c:487)" and "libssh2_channel_open_ex (channel.c:349)".
Could you please let me know if there is any change in 1.6.0 which may cause this leak.
==9718== 582,541 (545,440 direct, 37,101 indirect) bytes in 10 blocks are definitely lost in loss record 642 of 645
==9718== 10,144,824 (106,640 direct, 10,038,184 indirect) bytes in 155 blocks are definitely lost in loss record 644 of 645