[ZBX-23475] Memory leak in SNMP walk to JSON Created: 2023 Sep 27  Updated: 2024 Apr 10  Resolved: 2023 Oct 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Proxy (P), Server (S)
Affects Version/s: None
Fix Version/s: 6.4.8rc1, 7.0.0alpha7, 7.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Vladislavs Sokurenko Assignee: Dmitrijs Goloscapovs (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team A
Sprint: Sprint 104 (Sep 2023), Sprint 105 (Oct 2023)
Story Points: 0.5

 Description   
==305984== 950 bytes in 5 blocks are definitely lost in loss record 517 of 530
==305984==    at 0x48850E8: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-arm64-linux.so)
==305984==    by 0x5DF551F: strdup (strdup.c:42)
==305984==    by 0x56BDE3: zbx_strdup2 (misc.c:197)
==305984==    by 0x3FC1BB: snmp_walk_serialize_json (preproc_snmp.c:786)
==305984==    by 0x3FC983: item_preproc_snmp_walk_to_json (preproc_snmp.c:964)
==305984==    by 0x3FEBD3: pp_execute_snmp_to_json (pp_execute.c:997)
==305984==    by 0x3FF03F: pp_execute_step (pp_execute.c:1129)
==305984==    by 0x3FF38F: pp_execute (pp_execute.c:1215)
==305984==    by 0x3F336B: pp_task_process_value (pp_worker.c:57)
==305984==    by 0x3F376B: pp_worker_entry (pp_worker.c:159)
==305984==    by 0x5DDE813: start_thread (pthread_create.c:444)
==305984==    by 0x5E47D5B: thread_start (clone.S:79)


 Comments   
Comment by Dmitrijs Goloscapovs (Inactive) [ 2023 Oct 12 ]

Available in versions:

Generated at Sat Dec 13 22:29:26 EET 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.