cppcheck/testmemleak3/testmemleak3.cpp

13 lines
144 B
C++
Raw Normal View History

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