Unregister scalar variables

Jakob Lechner <[email protected]>
Newsgroups gmane.network.net-snmp.user
Organization Fabalabs
Message-ID <[email protected]>
Hello,

I'm writing a SNMP agent that dynamically registers certain variables. 

For registration of these variables I have used exactly the same API
functions as in "watcher.c" example (http://www.net-
snmp.org/dev/agent/watched_8c-example.html):

netsnmp_create_handler_registration
netsnmp_create_watcher_info
netsnmp_register_watched_instance

I can access the variables using snmpwalk, everything works fine. But
how can I unregister an variable again and free all the memory that was
allocated on registration? I tried the API functions
"netsnmp_unregister_handler" and "netsnmp_handler_registration_free" but
neither of these functions seem to free all the allocated memory because
the memory usage of my agent process still increases over time.

Can you help me? What am I missing?

Best regards
-- 
Jakob Lechner
Research & Development
Fabalabs Software GmbH
Honauerstraße 4
A-4020 Linz
Tel.: [+43] (70) 60 61 62
Fax: [+43] (70) 60 61 62-609
E-Mail: [email protected]
Web: http://www.fabalabs.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.