Bug 2683 - memory leak in ssh_packet_read_seqnr
Summary: memory leak in ssh_packet_read_seqnr
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: -current
Hardware: amd64 FreeBSD
: P5 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_7_5
  Show dependency treegraph
 
Reported: 2017-02-26 06:59 AEDT by Tom
Modified: 2021-04-23 14:57 AEST (History)
1 user (show)

See Also:


Attachments
The fix for master branch at commit id d5499190559ebe374bcdfa8805408646ceffad64 (859 bytes, patch)
2017-02-26 06:59 AEDT, Tom
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom 2017-02-26 06:59:30 AEDT
Created attachment 2948 [details]
The fix for master branch at commit id d5499190559ebe374bcdfa8805408646ceffad64

Memory leak was found with clang's static analyzer scan-build.
See attachment for location/fix.
Comment 1 Damien Miller 2017-02-28 17:11:39 AEDT
Applied. This will be in OpenSSH 7.5.

commit d7abb771bd5a941b26144ba400a34563a1afa589
Author: djm@openbsd.org <djm@openbsd.org>
Date:   Tue Feb 28 06:10:08 2017 +0000

    upstream commit
    
    small memleak: free fd_set on connection timeout (though
    we are heading to exit anyway). From Tom Rix in bz#2683
    
    Upstream-ID: 10e3dadbb8199845b66581473711642d9e6741c4
Comment 2 Damien Miller 2021-04-23 14:57:37 AEST
closing resolved bugs as of 8.6p1 release