Created attachment 2200 [details] Memory allocation and deallocation information We are using openSSH version release-5.1. When we do ssh login and logout we notice memory leak, we noticed this memory leak in the following functions. 1, match_list (from Line no 287) function allocated memory using xstrdup call and this was not freeed. 2, In function input_userauth_request(from line no 299) we allocate memory using xstrdup call and this was not freeed. 3, In Function list_hostkey_types (from line no 825) we allocate memory using xstrdup call and this was not freeed. 4, In function kex_setup (line no : 246) we allocate memory using buffer_init call and this was not freeed. 5, In Function channel_new (line no :332) allocate memory using xstrdup call and this was not freeed. 6, In function channel_new (line no:317) we allocate memory using buffer_init call and this was not freeed. If this issue was fixed in the later release, can you please help us with the patch. I am attaching the logs for you reference.
Created attachment 2201 [details] functions allocating and deallocating memory.
We can take a look, however since the sshd process goes away once the session is complete the OS should return all resources allocated by the process.
Retarget to openssh-6.4
Retarget 6.3 -> 6.4
Retarget incomplete bugs / feature requests to 6.6 release
Retarget to 6.7 release, since 6.6 was mostly bugfixing.
Remove from 6.6 tracking bug
Retarget incomplete bugs to 6.8 release.
These bugs are no longer targeted at the imminent 6.7 release
OpenSSH 6.8 is approaching release and closed for major work. Retarget these bugs for the next release.
Retarget to 6.9
detarget for 6.9 release, until we do the massive valgrind memleak cleanup
closing a very stale bug. We've done a fair bit of work on leaks since 2012. If you have a more recent report then feel free to reopen
closing bugs resolved before openssh-8.9