mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-25 16:44:04 +00:00
Corrected patch to bug #19168
This commit is contained in:
parent
1ffd049833
commit
7b54ddd828
@ -599,7 +599,7 @@ pbuf_free(struct pbuf *p)
|
||||
/* all pbufs in a chain are referenced at least once */
|
||||
LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);
|
||||
/* decrease reference count (number of pointers to pbuf) */
|
||||
ref = p->ref--;
|
||||
ref = --(p->ref);
|
||||
SYS_ARCH_UNPROTECT(old_level);
|
||||
/* this pbuf is no longer referenced to? */
|
||||
if (ref == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user