lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] how to free udp pcb


From: Simon Goldschmidt
Subject: Re: [lwip-users] how to free udp pcb
Date: Mon, 09 Jan 2012 09:17:43 +0100

Rahul Gundecha <address@hidden> wrote:
> Here I am puzzled with the comment in the code.
> 
> "Call sequence here is:
> lwip_close -> netconn_delete -> netconn_free
> 
> The comments on netconn_free() function says this -
>  * Delete a netconn and all its resources.
>  * The pcb is NOT freed (since we might not be in the right thread context
> do this)."

The pcb is freed in 'do_delconn()', not in 'netconn_free()': at that point, it 
should already be freed. 

Simon
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone



reply via email to

[Prev in Thread] Current Thread [Next in Thread]