cppcheck/testmemcheck5/testmemcheck5.cpp

14 lines
153 B
C++

void f()
{
char *str = strdup("hello");
while (condition)
{
if (condition)
break;
}
free(str);
}