[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] fix assert triggered in tcp_in.c
From: |
Christiaan Simons |
Subject: |
Re: [lwip-users] fix assert triggered in tcp_in.c |
Date: |
Fri, 7 Apr 2006 17:03:28 +0200 |
Pedro Alves wrote:
> Yep, that's right. Any change of getting it into cvs?
I'm not sure if this is 100% correct.
pbuf_free() does not guarantee the pbuf-chain is fully freed,
it may also lower some reference counters, or free the chain partially.
Sometimes multiple calls to pbuf_free in a loop maybe required.
Setting the pointer to NULL without checking the return value
of pbuf_free might actually result in a leak.
Maybe the actual problem is in where an assumption/evaluation
is made on the pointer value where it is used.
Christiaan Simons
Hardware Designer
Axon Digital Design
http://www.axon.tv