From 6a6faf1d582895687212453a8dc9ab9f77c9015c 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 --- rocclr/device/gpu/gpubinary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/device/gpu/gpubinary.cpp b/rocclr/device/gpu/gpubinary.cpp index 3e232bf15a..4f303f80e4 100644 --- a/rocclr/device/gpu/gpubinary.cpp +++ b/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();