Minor memory leak, the mcpu_stats array is malloc'd but never freed. --- a/agent/mibgroup/hardware/cpu/cpu_sysctl.c 2009-12-22 17:25:47.923759085 -0800 +++ b/agent/mibgroup/hardware/cpu/cpu_sysctl.c 2009-12-22 17:26:37.373759058 -0800 @@ -196,6 +196,7 @@ int netsnmp_cpu_arch_load( netsnmp_cache cpu = netsnmp_cpu_get_byIdx( i, 0 ); /* XXX - per-CPU statistics - mcpu_mib[i].??? */ } + free(mcpu_stats); #else /* Copy "overall" figures to cpu0 entry */ _cpu_copy_stats( cpu );
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders