clean-up function for table_iterator

Mihail Peter <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I'm using the table_iterator helper for my subagent. I implemented a
request-handler, which is called for every single GET-request and the
get_first_data_point and get_next_data_point hooks to iterate over my
data (linked list).

For the table I create a snapshot of some dynamic data and put it into
memory. After the snmpwalk is finished, the memory where the snapshot is
stored should be freed.

I allocate memory during the first call to my hook
"get_first_data_point", but how can I free this memory after snmpwalk is
finished?
Using "free_loop_context_at_end"-hook doesn't help, because it is called
after every single snmpget (each table entry /cell ) but I need it for
GETNEXT-request processing.

Does anybody know some solution?

Regards,
Mihail

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.