Skip to content

Commit

Permalink
network: Fix a memory leak issue in byte-tag-list
Browse files Browse the repository at this point in the history
  • Loading branch information
yyq15280 authored and F5Soft committed Mar 19, 2024
1 parent b969f6e commit 7340502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/model/byte-tag-list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7340502

Please sign in to comment.