cppcheck/testmemleak4/testmemleak4.cpp

16 lines
193 B
C++

bool f()
{
TStringList *StringList = new TStringList;
if (asd)
{
delete StringList;
return false;
}
delete StringList;
return true;
}