[memprof][NFC] Fix mismatched-new-delete in memprof tests

Fix mismatched-new-delete in memprof test_new_load_store.cpp and test_terse.cpp

Reviewed By: snehasish

Differential Revision: https://reviews.llvm.org/D116024
This commit is contained in:
Xu Mingjie 2021-12-20 18:35:08 -08:00 committed by Vitaly Buka
parent 9b4f179bf8
commit 95acd9241c
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ int main() {
for (int i = 0; i < 10; i++)
j += p[i];
#ifdef FREE
delete p;
delete[] p;
#endif
return 0;

View File

@ -24,7 +24,7 @@ int main() {
for (int i = 0; i < 10; i++)
j += p[i];
#ifdef FREE
delete p;
delete[] p;
#endif
return 0;