Hi,
I'm using net-snmp libraries 5.1.2 on Redhat EL 4.3. I'm developing some
SNMP gatherer using this lib and have problems with memory releasing when using
snmp_fix_pdu().
Do I have to call snmp_free_pdu() after calling snmp_fix_pdu()? Looking at
the library source code did not help me - it's not clear to me what
is happening there. I found some posts saying, that I don't need to call
snmp_free_pdu() after fixing and also found some examples with
snmp_free_pdu() after fixing. What is right? Manual to snmp_fix_pdu
is missing even in newest lib version.
I have this code now:
...
my_pdu = snmp_fix_pdu(response, SNMP_MSG_GET);
snmp_free_pdu(response);
response = NULL;
if (my_pdu != NULL) {
goto retry;
}
...
Thank you
Tomas
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders