Clean up allocated memory on error in CordbEval::NewParameterizedObject (#50371)
authorOmair Majid <omajid@redhat.com>
Tue, 30 Mar 2021 16:08:02 +0000 (12:08 -0400)
committerGitHub <noreply@github.com>
Tue, 30 Mar 2021 16:08:02 +0000 (09:08 -0700)
commit217599679c1679db41bfbf28a9969705e4761fa6
tree16f20c25a8ada2d4987fce84f2161714ebc2576a
parent4f62f32fad638ed6b9fc771eae3039d567adc81d
Clean up allocated memory on error in CordbEval::NewParameterizedObject (#50371)

pArgData is allocated in this piece of code; if we are failing and
returning early, we should deallocate this memory to avoid a memory
leak.
src/coreclr/debug/di/rsthread.cpp