network: Fix a memory leak issue in byte-tag-list

This commit is contained in:
yyq15280
2024-03-19 17:18:08 +08:00
committed by Songyuan Bai
parent b969f6eac6
commit 7340502ecc

View File

@@ -431,7 +431,7 @@ ByteTagList::Deallocate(ByteTagListData* data)
{
return;
}
if (data->count-- == 0)
if (data->count-- == 1)
{
#ifdef NS3_MTP
std::atomic_thread_fence(std::memory_order_acquire);