diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2022-01-21 21:05:13 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2022-01-21 21:05:13 +0300 |
commit | 2f1ae402817d44c2f7cabdf343c1e7e236629c16 (patch) | |
tree | 8765b405dff7988f41c9a79e4cb172c5999c6595 /src | |
parent | 801f7b639f8e9271e76b29ada7b60899d15aafee (diff) |
........S. [ZBX-19961] fixed shared memory leak when removing trigger
Diffstat (limited to 'src')
-rw-r--r-- | src/libs/zbxdbcache/dbconfig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/zbxdbcache/dbconfig.c b/src/libs/zbxdbcache/dbconfig.c index 6be116d0cf5..11309fb50da 100644 --- a/src/libs/zbxdbcache/dbconfig.c +++ b/src/libs/zbxdbcache/dbconfig.c @@ -3746,6 +3746,9 @@ static void DCsync_triggers(zbx_dbsync_t *sync) if (NULL != trigger->recovery_expression_bin) __config_mem_free_func((void *)trigger->recovery_expression_bin); + if (NULL != trigger->itemids) + __config_mem_free_func((void *)trigger->itemids); + zbx_hashset_remove_direct(&config->triggers, trigger); } } |