bugzilla-daemon at mindrot.org
2023-Apr-06 10:22 UTC
[Bug 3560] New: Memory leak in channels.c
https://bugzilla.mindrot.org/show_bug.cgi?id=3560 Bug ID: 3560 Summary: Memory leak in channels.c Product: Portable OpenSSH Version: 8.5p1 Hardware: Other OS: All Status: NEW Severity: enhancement Priority: P5 Component: ssh Assignee: unassigned-bugs at mindrot.org Reporter: m.schmidt at emtec.com Created attachment 3690 --> https://bugzilla.mindrot.org/attachment.cgi?id=3690&action=edit A few lines of code to fix the channels leak. Function channel_free_all(struct ssh *ssh) misses to free some of its elements: - channel_pre - channel_post - and the permitted_user and permitted_adm from local and remote perms This was found through a memory leaking tool (I'm building on Windows Visual Studio with memory leaks enabled). I would suggest to add something akin to the attached to the bottom of channel_free_all(struct ssh *ssh) -- You are receiving this mail because: You are watching the assignee of the bug.
https://bugzilla.mindrot.org/show_bug.cgi?id=3560 Markus Schmidt <m.schmidt at emtec.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |trivial --- Comment #1 from Markus Schmidt <m.schmidt at emtec.com> --- Changed to trivial. -- You are receiving this mail because: You are watching the assignee of the bug.