Update CppCoreGuidelines.md

Must be `int* p = new int[12]; delete[] p;`
This commit is contained in:
Roman 2016-04-11 14:41:58 +04:00
parent 7255e7d2f0
commit 6ea1422dd6

View File

@ -10510,7 +10510,7 @@ We could carefully release the resource before the throw:
int* p = new int[12];
// ...
if (i < 17) {
delete p;
delete[] p;
throw Bad {"in f()", i};
}
// ...