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();