Re: memory leak in do_linkup() in parse.c file

This is a discussion on Re: memory leak in do_linkup() in parse.c file within the SNMP Coders forums, part of the Networking and Network Related category; Aleksandr Lomanov wrote: > I found the problem in function do_linkup(). > After init_node_hash() call, > all checks "if (!...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-23-2007
Thomas Anders
 
Posts: n/a
Default Re: memory leak in do_linkup() in parse.c file

Aleksandr Lomanov wrote:
> 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.


Can you please submit this to the bug tracker
(http://www.net-snmp.org/bugs) so it won't get lost?

If you could come up with a proposed patch, please submit it to
http://www.net-snmp.org/patches . Thanks!


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)

-------------------------------------------------------------------------
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?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:55 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0