Use delete [] on array types (dotnet/coreclr#24027)
authorOmair Majid <omajid@redhat.com>
Tue, 16 Apr 2019 14:43:09 +0000 (10:43 -0400)
committerJan Kotas <jkotas@microsoft.com>
Tue, 16 Apr 2019 14:43:09 +0000 (07:43 -0700)
commit5e2518380b6b9388c91dca840b7890c33bf363a1
tree68235696292c3eb596aa97c8bd400a359429f8da
parente13509e5f473a9a0b0e8c9ff00004043d9b27a2a
Use delete [] on array types (dotnet/coreclr#24027)

Calling delete on types allocated with new[] leads to undefined
behaviour.

Commit migrated from https://github.com/dotnet/coreclr/commit/bef5dd6507f2e8ac163941646ef9936d6ced3715
src/coreclr/src/debug/di/process.cpp
src/coreclr/src/gc/gc.cpp
src/coreclr/src/ilasm/assembler.cpp
src/coreclr/src/inc/outstring.h
src/coreclr/src/vm/eventpipeeventsource.cpp