Corrected patch to bug #19168

This commit is contained in:
goldsimon 2007-03-04 17:21:43 +00:00
parent 1ffd049833
commit 7b54ddd828

View File

@ -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) {