Valgrind reports a leak in snmpusm::create_user_from_session

"Sampige, Sahana Prabhakar (STSD)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <3051CFF4B0ABBF418CBA816A2BF3F2033605036758@GVW1105EXC.americas.hpqcorp.net>
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
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.