| Summary: | memory leak in sshd.c:2262 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Jakub Jelen <jjelen> | ||||||
| Component: | sshd | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | trivial | CC: | dtucker | ||||||
| Priority: | P5 | ||||||||
| Version: | 6.7p1 | ||||||||
| Hardware: | Other | ||||||||
| OS: | Linux | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 2360 | ||||||||
| Attachments: |
|
||||||||
|
Description
Jakub Jelen
2015-03-28 02:20:20 AEDT
Comment on attachment 2577 [details] patch >- get_local_ipaddr(sock_in), get_local_port()); >+ (addr = get_local_ipaddr(sock_in)), get_local_port()); I think it'd be cleaner to do that assignment on a separate line rather than buried in the format string args. >+ xfree(addr); What version did you test this against? xfree() is long gone. Created attachment 2586 [details]
revised patch
Thanks for comments.
I was fixing this in recently released 6.8, but I don't know why I posted here xfree. Probably slow switching of context from fixing similar issue in older versions.
Adding revised patch with morning insight.
I just committed a slightly modified version of this patch and it'll be in the 6.9 release. Thanks. Set all RESOLVED bugs to CLOSED with release of OpenSSH 7.1 |