On Thu, 10 Jun 2004 16:39:40 -0700 Toth, wrote: TGS> In at least one case (destination ip was 0.0.0.0) the snmp_sess_send TGS> command failed. The pdu was not freed up and this resulted in a memory TGS> leak.
Right, that is how it is supposed to work. TGS> I am changinging the code to something like this TGS> TGS> Status = snmp_sess_send(sessp, pdu); TGS> If(status ==0){\\snmp_sess_send returns 0 on failure TGS> snmp_free_pdu(pdu); TGS> } TGS> TGS> My question is whether there is a condition where snmp_sess_send fails TGS> (returns 0) but the pdu is all ready freed up by snmp_sess_send? Nope, what you've done is correct. -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X. >From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders