Why does this code not result in a memory leak? – stackoverflow.com
I checked the following code in C++ with valgrind with --leak-check=full
and it says no memory leak. Why is that? char *p = new char[256]; delete
p; new[] should be matched by delete[] as far as I …
No comments:
Post a Comment