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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to