[ZBX-4824] Unclear memory de-allocation code in src/libs/zbxdbcache/nextchecks.c Created: 2012 Apr 02  Updated: 2017 May 30  Resolved: 2012 Apr 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.0.0rc2
Fix Version/s: 2.0.0rc3

Type: Incident report Priority: Trivial
Reporter: Andris Mednis Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: memoryleak
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In file src/libs/zbxdbcache/nextchecks.c, function DCflush_nextchecks(), it is not clear why there is only "zbx_free(trigger->expression);", but there is no "zbx_free(trigger->new_error);". Could it be a memory leak ?
For example, In file src/libs/zbxdbcache/dbcache.c, function DCmass_update_triggers(), there are both "zbx_free(trigger->expression);" and "zbx_free(trigger->new_error);".



 Comments   
Comment by Alexander Vladishev [ 2012 Apr 03 ]

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

Comment by dimir [ 2012 Apr 04 ]

Successfully tested.

Comment by Alexander Vladishev [ 2012 Apr 04 ]

Fixed in version pre-2.0.0rc3 r26644.

Generated at Fri Mar 29 17:32:43 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.