[ZBX-11440] Memory leaks when resolving LLD macros inside simple macros Created: 2016 Nov 08  Updated: 2017 May 30  Resolved: 2016 Nov 24

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.2.2rc1, 3.4.0alpha1
Fix Version/s: 3.2.2rc1, 3.4.0alpha1

Type: Incident report Priority: Major
Reporter: Glebs Ivanovskis (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: lld, memoryleak
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

If process_simple_macro_token() fails at the one of intermediate steps it will leak memory allocated for key and/or replace_to.



 Comments   
Comment by Vladislavs Sokurenko [ 2016 Nov 17 ]

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

replace_to is fixed to be always freed.
key is only allocated on success so it could not have leaked.

Comment by Andris Zeila [ 2016 Nov 21 ]

Successfully tested

Comment by Vladislavs Sokurenko [ 2016 Nov 21 ]

Fixed in:
3.2.2rc1 r63865
3.3.0 (trunk) r63866

Generated at Fri Apr 26 01:54:42 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.