From 179a948a5b553f63283a57a4eb22fc87a4bed3bc Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Tue, 29 Jul 2025 16:44:36 +0800 Subject: [PATCH] =?utf8?q?pbuf=E6=96=87=E4=BB=B6=E4=BB=A3=E7=A0=81?= =?utf8?q?=E4=BF=AE=E6=94=B9=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../open_source/openharmony/third_party/lwip/src/core/pbuf.c | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.17.1