cppcheck/testmemcheck4/testmemcheck4.cpp

14 lines
174 B
C++

void f()
{
for (int i = 0; i < j; i++)
{
char *str = strdup("hello");
if (condition)
continue;
free(str);
}
}