Use NewArrayHolder for array types in src/debug (#24013)
authorOmair Majid <omajid@redhat.com>
Tue, 16 Apr 2019 05:14:48 +0000 (01:14 -0400)
committerJan Kotas <jkotas@microsoft.com>
Tue, 16 Apr 2019 05:14:48 +0000 (22:14 -0700)
commit08318afbeb726eb80f212c70310e5750daec5abf
treee0095bb8d6e2ee1b0c44caca8ffda1671187a511
parent0f838a7c22c6e19748582ced5e03a8e273f63062
Use NewArrayHolder for array types in src/debug (#24013)

Using a NewHolder with array types means that when the holder is ready
to release the  memory, it ends up invoking `delete` (instead of
`delete[]`) on that array. This is an undefined behaviour.

Use NewArrayHolder isntead to fix this.
src/debug/daccess/dacdbiimpl.cpp
src/debug/di/process.cpp
src/debug/di/rstype.cpp