[ZBX-9703] Memory leak in ssh_run() if configured keys are not regular files Created: 2015 Jul 14  Updated: 2017 May 30  Resolved: 2015 Aug 04

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: 2.0.15rc1, 2.2.10rc2, 2.4.6rc1, 2.5.0

Type: Incident report Priority: Minor
Reporter: Sandis Neilands (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: memoryleak, ssh
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Problem discovered by Coverity Scan: CID 125377, CID 125376.

In ssh_run() memory for publickey and privatekey filenames is not freed in case the files are not regular files.

Regression since r27194 which is correction for ZBX-4857 (1.8.13, 2.0.0).



 Comments   
Comment by Sandis Neilands (Inactive) [ 2015 Jul 15 ]

Correction available in svn://svn.zabbix.com/branches/dev/ZBX-9703 .

Comment by Andris Zeila [ 2015 Jul 29 ]

Successfully tested. The fix should be applied also to other branches, starting with 2.0

Comment by Sandis Neilands (Inactive) [ 2015 Jul 30 ]

Fixed in 2.0.15rc1 r54606, 2.2.10rc2 r54610, 2.4.6rc1 r54615, trunk r54616.

Generated at Fri Apr 26 15:22:06 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.