int a[10];
f(int* a) { delete[] a; }
...
f(a);
ならともかく、
int a[10];
...
delete[] a;
これはさすがに警告出る気がするんだが