From d398c019d3c918c3e4908a9da42a64f06eaa3f29 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Tue, 25 Apr 2023 13:27:12 -0700 Subject: [PATCH] Clear out data from pooled object before returning to pool --- src/Compilers/CSharp/Portable/Symbols/ConstraintsHelper.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Compilers/CSharp/Portable/Symbols/ConstraintsHelper.cs b/src/Compilers/CSharp/Portable/Symbols/ConstraintsHelper.cs index 7440e4a2216f0..4c6b1fab7c27c 100644 --- a/src/Compilers/CSharp/Portable/Symbols/ConstraintsHelper.cs +++ b/src/Compilers/CSharp/Portable/Symbols/ConstraintsHelper.cs @@ -547,6 +547,7 @@ public static CheckConstraintsArgsBoxed Allocate(CSharpCompilation currentCompil public void Free() { + this.Args = default; s_checkConstraintsArgsBoxedPool.Free(this); } }