Index: compiler-rt/test/memprof/TestCases/test_new_load_store.cpp =================================================================== --- compiler-rt/test/memprof/TestCases/test_new_load_store.cpp +++ compiler-rt/test/memprof/TestCases/test_new_load_store.cpp @@ -35,7 +35,7 @@ for (int i = 0; i < 10; i++) j += p[i]; #ifdef FREE - delete p; + delete[] p; #endif return 0; Index: compiler-rt/test/memprof/TestCases/test_terse.cpp =================================================================== --- compiler-rt/test/memprof/TestCases/test_terse.cpp +++ compiler-rt/test/memprof/TestCases/test_terse.cpp @@ -24,7 +24,7 @@ for (int i = 0; i < 10; i++) j += p[i]; #ifdef FREE - delete p; + delete[] p; #endif return 0;