Fix more alloc-dealloc mismatches and use-after-scopes (#55420)
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Mon, 12 Jul 2021 22:55:26 +0000 (15:55 -0700)
committerGitHub <noreply@github.com>
Mon, 12 Jul 2021 22:55:26 +0000 (22:55 +0000)
commit1509b1a0e66aae1504137488fb25c00bf822e3e6
tree6f788a06b7bd60d67ea0c97e6b21d8a0b117a89c
parentd91e11a2bc2f21f3f9df6e16603aa097bea1bd16
Fix more alloc-dealloc mismatches and use-after-scopes (#55420)

* Fix another dynamically-sized allocation to use new/delete instead of the mismatched new[]/delete.

* Fix use-after-scope

* Fix another alloc-dealloc mismatch

* Update src/coreclr/vm/threadstatics.cpp

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* Use standard size_t instead of custom SIZE_T typedef.

* Fix formatting.

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
src/coreclr/jit/lsrabuild.cpp
src/coreclr/vm/threadstatics.cpp
src/coreclr/vm/threadstatics.h