Bug 2962

Summary: client leaks ssh context, host_arg and packet.c leaks kex-structure.
Product: Portable OpenSSH Reporter: Markus <markus>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: NEW ---    
Severity: minor CC: djm
Priority: P5    
Version: 7.9p1   
Hardware: All   
OS: All   
Attachments:
Description Flags
client_cleanup.diff
none
fixex leaks and a problem with previous patch (sorry for the mess). none

Description Markus 2019-02-06 01:09:09 AEDT
Created attachment 3235 [details]
client_cleanup.diff

After completing the session, the client leaks the ssh structure and the host_arg.

Also, on cleanup, packet.c leaks the kex-structure (which is held inside the ssh struct).

I've also moved host_arg from global to local variable, because it is only passed to one function.

Patch is attached.
Comment 1 Markus 2019-02-06 01:18:25 AEDT
Created attachment 3237 [details]
fixex leaks and a problem with previous patch (sorry for the mess).