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

Reply via email to