>>>>> On Wed, 08 Dec 2004 10:47:05 -0600, Stephen Dzurenko <[EMAIL PROTECTED]> >>>>> said:
Stephen> My question regarding the above code is why do we free the Stephen> reponse PDU but not the pdu PDU??? In fact, when I have Stephen> attempted to free the pdu PDU bad things have happened. The original PDU is eaten by the library. It frees it. Except when an error occurs, in which case you should free it yourself. Stephen> If I'm not freeing pdu from the previous loop and getting a Stephen> new one via snmp_pdu_create in each loop, do I have a memory Stephen> leak somewhere??? No, unless you don't free the response. (note that you can actually use the response as the next input pdu, which is what snmpwalk does actually). -- Wes Hardaker Sparta ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ 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
