1
0
mirror of https://github.com/lwip-tcpip/lwip.git synced 2025-03-29 13:20:09 +00:00

Corrected patch to bug

This commit is contained in:
goldsimon 2007-03-04 17:21:43 +00:00
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) {