c++ - Memory leaks testing -
I am testing memory leaks for our product with the device
Are Instruments Right on These Types of Items? You can leak objects to In the same way you can leak a 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?
std :: string and this is very difficult Not:
int main () {std :: string * s = new std :: string (); Return 0; }
auto_ptr . A std :: string will skip the dynamically assigned string array, but it will not
release itself .
Comments
Post a Comment