c++ - Memory leaks testing -


I am testing memory leaks for our product with the device

std: The string or std :: auto_ptr objects leaks are detected. As I know, these two types of objects will leave themselves. I am thinking that they are actually leaking or just because I have closed the recording very quickly and the devices have not been detected that they are released gone?

Are Instruments Right on These Types of Items?

You can leak objects to std :: string and this is very difficult Not:

  int main () {std :: string * s = new std :: string (); Return 0; }   

In the same way you can leak a auto_ptr . A std :: string will skip the dynamically assigned string array, but it will not release itself .

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -