Hi All,
I am sending traps from my application using snmp_sess_send api. But when I ran 
my application through valgrind a leak is reported as below :

==20398== Invalid read of size 1
==20398==    at 0x4006243: strlen (mc_replace_strmem.c:246)
==20398==    by 0xD01D94: strdup (in /lib/libc-2.5.so)
==20398==    by 0x7E427BF: create_user_from_session (snmp_api.c:1787)
==20398==    by 0x7E442A7: snmp_sess_async_send (snmp_api.c:4993)
==20398==    by 0x7E44DE3: snmp_sess_send (snmp_api.c:4892)

I do a snmp_sess_close but still the user created is not destroyed. Am I 
missing calling some function to free the memory allocated for the user.

Rgds,
Sahana
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
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