diff --git a/compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp b/compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp --- a/compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp +++ b/compiler-rt/test/asan/TestCases/unaligned_loads_and_stores.cpp @@ -47,6 +47,6 @@ case 'O': __sanitizer_unaligned_store64(x + 14, 0); break; // CHECK-O: main{{.*}}unaligned_loads_and_stores.cpp:[[@LINE-1]] } - delete x; + delete[] x; return res; }