[ZBX-9895] Memory leak in process_proxyconfig_table() Created: 2015 Sep 21  Updated: 2017 May 30  Resolved: 2015 Oct 08

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: 2.2.6
Fix Version/s: 2.2.11rc1, 2.4.7rc1, 3.0.0alpha3

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

Issue Links:
Duplicate
is duplicated by ZBXNEXT-2978 Memory leak in process_proxyconfig_ta... Closed
is duplicated by ZBX-9896 Memory leak in process_proxyconfig_ta... Closed

 Description   

Function: process_proxyconfig_table()

Description: leaking memory of the variable 'value' in switch 'default' clause in case of unsupported field type.

Coverity: CID 118922

Regression: since ZBXNEXT-166

Affected versions: since 2.2.3



 Comments   
Comment by Aleksandrs Saveljevs [ 2015 Sep 21 ]

While at it, it might be nice to simplify get_proxyconfig_data() - it defines a structure "proxytable_t", which consists of just one string member.

Comment by Sandis Neilands (Inactive) [ 2015 Sep 24 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-9895 .

Comment by Aleksandrs Saveljevs [ 2015 Sep 25 ]

(1) Please take a look at r55753. It fixes issue reference in ChangeLog and fixes a bit of style in proxy.c changes.

sandis.neilands Thanks! Good catch regarding ChangeLog! CLOSED.

Comment by Sandis Neilands (Inactive) [ 2015 Sep 25 ]

Fixed in:

  • 2.2.11rc1 r55754;
  • 2.4.7rc1 r55755;
  • 3.0.0alpha3 (trunk) r55758.
Generated at Fri Mar 29 08:05:18 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.