Re: unregistering handlers

Wes Hardaker <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Sparta
Message-ID <[email protected]>
>>>>> On Tue, 12 Oct 2010 18:41:37 +0200, Leo Cacciari <[email protected]> said:

LC> A secondary question could be: do I have the right approach? :) 

To answer your second question first: it looks like you've thought it
out quite well and your approach should work.

LC> The question is: it is enough to call netsnmp_unregister_handler to
LC> avoid memory leaks? 

No, the netsnmp_handler_registration object is not freed by
netsnmp_unregister_handler so I'm not sure why you're getting crashes
when you try to call it.  Unfortunately, it's one of those
hard-to-nail-down problems that will probably require some time in a
debugger to solve.
-- 
Wes Hardaker
Cobham Analytic Solutions

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
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.