From 33d212d09a57c7b9cc56d84780e2533071342c22 Mon Sep 17 00:00:00 2001 From: Tao Sang Date: Thu, 22 Oct 2020 21:41:04 -0400 Subject: [PATCH] Fix crash in delete of TempWrapper OCLTST crashing at oclruntime.OCLKernelBinary for Tahiti because of deleting on pointer vector which is however a single pointer. The fix will correct the wrong deleting in TempWrapper destructor. Change-Id: Ic5a1387a426c102b085a4ef8ff8ff05e6a870cba [ROCm/clr commit: 6a6faf1d582895687212453a8dc9ab9f77c9015c] --- projects/clr/rocclr/device/gpu/gpubinary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/device/gpu/gpubinary.cpp b/projects/clr/rocclr/device/gpu/gpubinary.cpp index 3e232bf15a..4f303f80e4 100644 --- a/projects/clr/rocclr/device/gpu/gpubinary.cpp +++ b/projects/clr/rocclr/device/gpu/gpubinary.cpp @@ -96,7 +96,7 @@ bool ClBinary::loadKernels(NullProgram& program, bool* hasRecompiled) { ~TempWrapper() { for (const auto& it : functionNameMap) { - delete[] it.second; + delete it.second; } kernelILs.clear();