LWIP pbuf_free is trying to free a null reference
Working with LWIP using TCP echo example code on STM32H743I_Eval and CMX V1.3.0.
After receiving a packet and extracting the payload netbuf_delete(buf) gets called which works most of the time. When it does not work it throws an assert failure in pbuf.c during the pbuf_free() function when wlaking back through the chain p->ref goes to 0. The packet that is sent is a test packet with know byte count and contents. The number of p->ref is always the same and should be 3 prior to netbuf_delete(). I find that when p->buf should be 2, freeing the second allocated buffer it somehow comes up 0 which causes the assert to be thrown.
Anyone seen this?
