Re: Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-13 Thread Bill Fenner
It's the caller's responsibility to free that memory (and snmp_free_pdu() will). Bill On Wed, Mar 12, 2014 at 11:28 AM, John Zavgren wrote: > Nevertheless... > The memory that is allocated at lines 3715 and 3724 is leaked at line 3795. > > Allocations: > > * */* > *sec_params = data;

Re: Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-12 Thread John Zavgren
Nevertheless... The memory that is allocated at lines 3715 and 3724 is leaked at line 3795. Allocations: * */** **sec_params = data;** **pdu->contextEngineID = (u_char *) calloc(1, SNMP_MAX_ENG_SIZE);**< FIRST ALLOCATION **pdu->contextEngineIDLen =

Re: Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-12 Thread John Zavgren
Dear List: Let me apologize... the "memory leak" that I reported, IS NOT a memory leak. I should have read my email carefully before sending it. I'm sorry for any confusion or consternation I may have created. :-( JZ On 03/12/2014 10:55 AM, John Zavgren wrote: Greetings: Memory is allocated

Memory Leak bug in net-snmp-5.6.2.1, in the procedure snmpv3_parse()

2014-03-12 Thread John Zavgren
Greetings: Memory is allocated in the procedure snmv3_parse(), in the file: snmplib/snmp_api.c, at line number 3995, and leaked at line number 4004. */*** ** * securtityParameters OCTET STRING begins after msgGlobalData ** ** */** **sec_params = data;** **pdu->contextEngineID =