Den 23-02-2011 19:07, Adam Mendlik skrev:
> My question is: is there a reason why snmp_send() is leaking memory, how
> do I fix it, or should I be using a different function in this scenario?

Are you checking the return value from snmp_send?

I seem to recall that sending traps is different, in the way that it 
does not expect a return packet from the receiver, and that you 
therefore must free the PDU yourself ...

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to