2009/8/31 Gang Shu <[email protected]>:
> Thanks a lot for your kind reply. However, I am still confused about the
> function 'shutdown_notification_log()', since there is no explicitly
> resource release statement in it.

Correct.

> Could you please give me more details?

*If* the agent were to explicitly release this table data structure,
then shutdown_notification_log() would be the obvious place to
do so.    In an ideal world, that's what we would be doing.
(Both for this MIB table, and all of the others that the agent supports).


But in practise, this routine would normally only be called shortly
before the agent shuts down completely.   As Steve says, calling
"exit()" means that the O/S will automatically release all of the
allocated memory anyway.

So we save a little bit of time by not bothering to explicitly release
the table data structure here.

Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to