Skip to content

Commit

Permalink
avoid repeated leaking from gwp_asan
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingerZhu committed Jan 27, 2025
1 parent f6709db commit d7acd32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/func/fixed_region/fixed_region.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ int main()
{
auto r1 = a.alloc(object_size);

if (SecondaryAllocator::has_secondary_ownership(r1))
continue;

count += object_size;
i++;

if (SecondaryAllocator::has_secondary_ownership(r1))
{
a.dealloc(r1);
continue;
}

if (i == 1024)
{
i = 0;
Expand Down

0 comments on commit d7acd32

Please sign in to comment.