Hi;

 

I am developing an application using net-snmp 5.3.0.1.  I have noticed that when making snmpv3 queries, a usm user gets created in the create_user_from_session function but at shutdown the memory for those users is not freed.  I have added a call to clear_user_list() in snmp_shutdown().  I have also found that memory allocated in the etimelist found in lcd_time.c leaks at shutdown as well, so I wrote a function clear_etimelist() which frees all of the memory in the etimelist array and added a call to the function in snmp_shutdown().

 

Is there a good reason why I shouldn’t free this memory at shutdown?  I have tested it in my program and it seems to work fine.

 

Mathew Bielejeski

http://www.neon.com

 

 

 

 

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to