cppcheck/testmemleak2/testmemleak2.cpp

13 lines
140 B
C++
Raw Normal View History

2007-07-27 10:11:07 +02:00
bool f()
{
char *str = strdup("hello");
if (a==b)
{
return false;
}
free(str);
return true;
}