Memory leaks are considered such because all reference to them is lost. That means that nothing holds a pointer to allocated memory. Essentially, if you knew how many leaks there were and where they were they wouldn't be leaks. Some programs are built to detect them in other programs, though. Those detection programs are generally only suitable for development testing.