[AGENT++] Memory Leak

Frank Fock fock at agentpp.com
Mon May 15 23:39:59 CEST 2006


Hi Mads,

Are you sure that this is a real memory leak?
In other words, does the memory footprint increase each
time you add such a row?

Otherwise it could be the static member like the
local engine ID that is reported as a potential leak?

Best regards,
Frank

Mads Møller Grønfeldt wrote:
> Hi,
>  
> I am currently writing an agent in Visual C++ 2005, and I have a problem with a memory leak (60 bytes), when compiling with SNMPV3 enabled. 
> The problem goes away when the set_row line below is commented out. If I use snmp_community_mib::add_public instead of the three lines below, I get the memory leak as well..
>  
> MibTableRow* row = snmpCommunityEntry::instance->add_row(Oidx::from_string(octCommunityString, FALSE));
> OctetStr tag("v1v2cPermittedManagers");
> snmpCommunityEntry::instance->set_row(row, octCommunityString, octCommunityString, pReqList->get_v3mp()->get_local_engine_id(),"", tag, 3, 1);
> 
> Any hints?
> 
> Regards
> 
>  
> 
> Mads Groenfeldt
> 
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the AGENTPP mailing list