Hi all
I have version 5.5 of netsnmp. I am looking at snmp_agent.c, function
init_master_agent and see a memory leak here. strdup mallocs and
duplicates the string into buf, but then buf is never released. It is a
local which is also never stored or returned, so it is lost forever and
not able to be handled outside of this function.
There is the possibility netsnmp_transport_open_server at least stores
the duplicated ptr somewhere like a transport structure (so it could
potentially be freed somewhere else). I don't know the code well enough
to know for sure, but I don't see it in the resultant transport struct
anywhere. Can someone please advise on how to fix this?
-----------
Brett Szudy
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders