cppcheck/testmemcheck5/testmemcheck5.cpp

14 lines
153 B
C++
Raw Normal View History

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