Tuesday, 1 October 2013

Why does this code not result in a memory leak=?iso-8859-1?Q?=3F_=96_stackoverflow.com?=

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