Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4824

Unclear memory de-allocation code in src/libs/zbxdbcache/nextchecks.c

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0rc2
    • Fix Version/s: 2.0.0rc3
    • Component/s: Server (S)
    • Labels:

      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);".

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andris Andris Mednis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: