cppcheck/testmemleak4/testmemleak4.cpp

16 lines
193 B
C++
Raw Normal View History

2007-08-31 06:23:09 +02:00
bool f()
{
TStringList *StringList = new TStringList;
if (asd)
{
delete StringList;
return false;
}
delete StringList;
return true;
}