[Bug 3560] New: Memory leak in channels.c
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Apr 6 20:22:25 AEST 2023
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.
More information about the openssh-bugs
mailing list