fixed memory leak on the new snmp parser
Costa Tsaousis (ktsaou) committed
Nov 8, 2017 at 01:02 UTC
b4eb37d38d7c4e0659a7b66ef41bdc1ad3a2205e
1 file changed
+1
-1
src/proc_net_snmp.c
+1
-1
@@ -94,7 +94,7 @@ int do_proc_net_snmp(int update_every, usec_t dt) {
94
do_udp_packets = -1, do_udp_errors = -1, do_icmp_packets = -1, do_icmpmsg = -1, do_udplite_packets = -1;
95
static uint32_t hash_ip = 0, hash_icmp = 0, hash_tcp = 0, hash_udp = 0, hash_icmpmsg = 0, hash_udplite = 0;
96
97
- ARL_BASE *arl_ip = NULL,
97
+ static ARL_BASE *arl_ip = NULL,
98
*arl_icmp = NULL,
99
*arl_icmpmsg = NULL,
100
*arl_tcp = NULL,