Hi,
I want to know how to program to find memory leak. my idea is to find whether there is a free() for every malloc before exiting the function.
x()
{
malloc()
....
if()
{
abc
return; // thr is a memory leak as thr is no free n we are returning from the function.
}
.....
.....
free()
}