Hi, I've just tried your application and found that it is reporting many false positive for new[] without delete.
Here is an example code to repro:
void test()
{
int *farray= new int[20];
// VisualCodeGrepper V2.1.0 reports false positive, new[] without delete
delete[] farray;
}
It would seem that VCG is incorrectly looking for a corresponding delete, but as this is an array allocation using new[], it should be looking for delete[]
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I've just tried your application and found that it is reporting many false positive for new[] without delete.
Here is an example code to repro:
It would seem that VCG is incorrectly looking for a corresponding delete, but as this is an array allocation using new[], it should be looking for delete[]