How to properly unregister and clean up a table?

Vinh Nguyen <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

 From what I found in net-snmp library headers, I assume that I can 
unregister a table using this:
netsnmp_unregister_handler(my_handler);
(my_handler is of type netsnmp_handler_registration *)
Is that correct?

Also, do I need to clean up the memory used by the "my_handler" 
structure or will it be taken care of by the unregister function?

 From the name, this function in the API seems to be intended for that 
purpose:
netsnmp_handler_registration_free(my_handler);
However if I call it after netsnmp_unregister_handler, I have crashes, 
apparently some pointers were being free twice.

Could anyone tell me the correct way that I'm supposed to use to 
unregister tables?

Thanks,
Vinh

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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.