[AGENT++] DefaultLog::instance

Jochen Katz katz at agentpp.com
Sun Aug 14 15:23:24 CEST 2005


Hi,

> 	static AgentLog* log() 
> 	  { if (!instance) init(new AgentLogImpl()); return instance; }
> 
> There is no where that I can tell where the memory allocated here is
> released, except for when it is replaced with a new memory allocation.  I
> understand that this probably will not show up in the release version, but I

it's intended: as long as snmp++/agent++ is used with logging enabled a
logging object is needed.

You can "delete" it through "DefaultLog::init(NULL);"

Regards,
  Jochen




More information about the AGENTPP mailing list