cppcheck/testdelete1/testdelete1.cpp

8 lines
51 B
C++

void f()
{
if (p)
delete p;
}