Testing: memcheck3 - new and delete (no error)
This commit is contained in:
parent
45f2292a5e
commit
0bf77b2051
|
@ -0,0 +1,18 @@
|
|||
|
||||
|
||||
|
||||
|
||||
void f()
|
||||
{
|
||||
Kalle *kalle;
|
||||
if (somecondition)
|
||||
{
|
||||
kalle = new Kalle;
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
delete kalle;
|
||||
}
|
||||
|
Loading…
Reference in New Issue