Hi Dave There is no double-free problem. The free is only called once and crashes on the first time. However, there is something I don't understand. As I said the data is not stored locally on the agent, but on kernel. When the device is loaded, there is always 5 rows in the table. Where those 5 rows are allocated and stored in the local agent table?
In addition, I added a new row, and immediately destroyed it. I printed the address the entry is pointing to, and it seems that in "create_entry" the allocated entry is pointing to "0x1201f6160", while on "remove_entry" it is pointing to "0x555aa6dc98". I am attaching the C file again. Thank you, Naama -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Dave Shield Sent: Tuesday, July 31, 2012 12:20 AM To: Naama Bar Menachem Cc: [email protected] Subject: Re: How to delete/add line from raw table? On 30 July 2012 17:18, Naama Bar Menachem <[email protected]> wrote: > I track "entry"'s address and it seems fine (entry=0x555826b818). Not > NULL at no stage. > On the other hand- when I remove the call for SNMP_FREE it does not > crash. That sounds more like a double-free problem. Dave
nsCommonConfigDataForwardPolicyRoute.c
Description: nsCommonConfigDataForwardPolicyRoute.c
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
