cppcheck/testmemcheck3/testmemcheck3.cpp

19 lines
171 B
C++

void f()
{
Kalle *kalle;
if (somecondition)
{
kalle = new Kalle;
}
else
{
return;
}
delete kalle;
}