From: luozheng <1732036298@qq.com> Date: Tue, 29 Jul 2025 08:44:36 +0000 (+0800) Subject: pbuf文件代码修改还原 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2020%2Ftarget%2F1;p=mirrors%2FFD230.git pbuf文件代码修改还原 --- diff --git a/code/sdk/open_source/openharmony/third_party/lwip/src/core/pbuf.c b/code/sdk/open_source/openharmony/third_party/lwip/src/core/pbuf.c index dcfbd386a..7638dfda8 100644 --- a/code/sdk/open_source/openharmony/third_party/lwip/src/core/pbuf.c +++ b/code/sdk/open_source/openharmony/third_party/lwip/src/core/pbuf.c @@ -751,8 +751,6 @@ pbuf_free(struct pbuf *p) SYS_ARCH_PROTECT(old_level); /* all pbufs in a chain are referenced at least once */ LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0); - if(p->ref <=0) - return 0; /* decrease reference count (number of pointers to pbuf) */ ref = --(p->ref); SYS_ARCH_UNPROTECT(old_level);