Test: Added "TestMemCheck1" -> mismatching allocation and deallocation
This commit is contained in:
parent
03e1eadba6
commit
cd169a6c27
|
@ -0,0 +1 @@
|
||||||
|
[testmemcheck1\testmemcheck1.cpp:5]: Mismatching allocation and deallocation
|
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
void f()
|
||||||
|
{
|
||||||
|
int *a = new int[10];
|
||||||
|
delete a;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue