lwIP Wiki
Advertisement

netbuf_delete[]

void netbuf_delete ( struct netbuf * aNetBuf );

Delete a netbuf object and deallocate all memory it owns, also the buffers associated with it. Note, however, that memory linked into a netbuf object using "netbuf_ref" is not freed.

  • in aNetBuf: netbuf object to delete. It could have been created with netconn_new, but also returned as out-parameter from netconn_recv.

netbuf_free[]

void netbuf_free ( struct netbuf * aNetBuf );

Similrar to netbuf_delete. Deallocate the memory of the internal buffer, but do not kill the netbuf object itself. See also the advice concerning "netbuf_ref" above.


(last changed: Sept. 26, 2011)

Advertisement