Bugs item #1749253, was opened at 2007-07-06 19:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1749253&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marcus Hunger (marcushunger)
Assigned to: Nobody/Anonymous (nobody)
Summary: memory-errors in modules/path/path.c

Initial Comment:
hi,
the path-module has two memory errors: a double-free in prepend_path and a 
memory-leak in path_rr_callback. 

the double-free-condition is triggered when an error happens after at least one 
insert_new_lump_before happened. then all allocated buffers get freed, 
including the one(s) that was added as a lump. freeing the packet and the lump 
leads to a double-free.

the memleak in path_rr_callback is caused by not freeing the whole params-list, 
but only the part of the list beginning with the received-parameter. 

the attached patch fixes these issues.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1749253&group_id=139143

_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to