memery leak problem in tables genereted with mib2c.table_data.conf

Francois Bouchard <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAAZiaZc3M4xHbnVvmZ2epnYiahKQwyTTw-ewVSW9HRr-v+9xvQ@mail.gmail.com>
Hello list,

We have a snmpd that have a memory leak.  The leak occurs when we are
getting any table data.
All of the SNMP agent's table source are auto-genereted by mib2c using :

$ env MIBS="+MPBC-RMH-MIB" mib2c -c mib2c.table_data.conf mpbcRMHMonOsuTable
     opt. 1) cache

   Now in the auto-generated code we can see the following line :
   mpbcRMHMonOsuTable_createEntry()
   (...)
       entry = SNMP_MALLOC_TYPEDEF(struct mpbcRMHMonOsuTable_entry);
   (...)

   ... but no where there is the corresponding SNMP_FREE().  Should it be
added manually?

system : linux
net-snmp ver 5.7.1


Thanks,

Francois

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.