cppcheck/testmemcheck3/testmemcheck3.cpp

19 lines
171 B
C++
Raw Normal View History

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