[ZBX-9285] Memory leak in lld_host.c module Created: 2015 Feb 05  Updated: 2017 May 30  Resolved: 2015 Feb 09

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.8, 2.4.3
Fix Version/s: 2.2.9rc1, 2.4.4rc1, 2.5.0

Type: Incident report Priority: Critical
Reporter: Alexander Vladishev Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: lld, memoryleak
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Possible memory leak in function lld_group_make() while processing of host prototypes.

src/libs/zbxdbhigh/lld_host.c:883:884

buffer = zbx_strdup(buffer, name_proto);
substitute_discovery_macros(&buffer, jp_row, ZBX_MACRO_ANY, NULL, 0);

This buffer can be left in memory.



 Comments   
Comment by Alexander Vladishev [ 2015 Feb 07 ]

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

Comment by Andris Zeila [ 2015 Feb 09 ]

Successfully tested

Comment by Alexander Vladishev [ 2015 Feb 09 ]

Fixed in pre-2.2.9 r52087, pre-2.4.4 r52088 and pre-2.5.0 (trunk) r52089.

Generated at Thu Apr 25 20:34:18 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.