Skip to content

Commit

Permalink
Clear out data from pooled object before returning to pool (#67963)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Apr 25, 2023
1 parent 2c5b998 commit a10d8fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Compilers/CSharp/Portable/Symbols/ConstraintsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ public static CheckConstraintsArgsBoxed Allocate(CSharpCompilation currentCompil

public void Free()
{
this.Args = default;
s_checkConstraintsArgsBoxedPool.Free(this);
}
}
Expand Down

0 comments on commit a10d8fd

Please sign in to comment.