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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to