Hi all,

To create a new snmp session I always try to do following:

init_snmp("my_session");
snmp_sess_init(&session_info);
session_info.peername = strdup("127.0.0.1");
session_info.version = SNMP_VERSION_2c;

here I use strdup for assigning a localhost as peername, This leaks memory
If we does not freed session_info.peername,
does snmp api consume such malloc'd strings before exiting? Is there any
kind of global-free checker implemented?
Do we have to worry about such kinds of memory consumes?

Thanks and Regards...

-- 
Rakesh P. Zingade
+919420626099
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
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

Reply via email to