On 22 July 2010 00:57, Bill Auerbach <[email protected]> wrote:
> After seeing this example, I don’t understand the while loop, while
> pbuf_free returns 0 – can it get stuck there?  I also wonder why
> pbuf_dechain wasn’t used instead of deleting the first pbuf in the chain
> manually?

Again, if I am not mistaken, the while loop is needed if there is more
than 1 reference to the pbuf in question. Perhaps, in this particular
program this will never happen. Maybe the author of the code put the
while loop there just to be on the safe side?
As for pbuf_dechain(), I'm not sure it's the right function to use.
You still have to free the pbuf, and pbuf_dechain() doesn't seem to do
that.

- mike

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to