buglwIP - A Lightweight TCP/IP stack - Bugs: bug #2156, TCP pbuf memory leak

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2156: TCP pbuf memory leak

Submitted by:  Invalid User ID <Invalid User ID>
Submitted on:  Wed 08 Jan 2003 08:38:23 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Leon Woestenberg <likewise>
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Tue 14 Jan 2003 12:52:29 PM UTC, comment #1:

Fixed by calling pbuf_free(p) if the recv callback is NULL. Application lwip_tcp_event() implementations must do the same!

In tcp.h:

#define TCP_EVENT_RECV(pcb,p,err,ret) if((pcb)->recv != NULL) { ret = (pcb)->recv((pcb)->callback_arg,(pcb),(p),(err)); } else { pbuf_free(p); }

Leon Woestenberg <likewise>
Project MemberIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 14 Jan 2003 12:52:29 PM UTClikewiseStatusNone=>(Error - Not Found)
  Assigned toNone=>NA
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1