Hi.

I'm learning how to write a monitoring client using libsnmp. I copied from the 
example application in the wiki 
(http://www.net-snmp.org/wiki/index.php/TUT:Simple_Application) and wrote a 
small test program which performs an SNMPv1 query. I ran it with valgrind and 
got 23 errors from 18 contexts. It also seems that some memory is leaking. 
Here is the code and the valgrind output from its execution:

http://pastebin.ca/587239
http://pastebin.ca/587240

The distribution is Debian unstable, libsnmp version is 5.3.1, and Valgrind is 
3.2.3. Is this kind of behavior normal from libsnmp, or is the test program's 
code broken in some way?

I am grateful for any help. Thanks,

Juuso Alasuutari

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to