Hello, all!

I sorry for my english.
I found the problem in function do_linkup().
After init_node_hash() call,
all checks "if (!np) return;" are illegal.
Second parameter of do_linkup() "struct node *np"
points to first element of node list.
The call of init_node_hash(np) hashes the one node list
to several node lists, and np points to one of them.
If MIB file written correctly, memory of all nodes in nbuckets array
freed.
Otherwise, memory of left nodes in nbuckets array not freed.


Aleksandr Lomanov
ICQ#: 170411676


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to