Possible Duplicate:
Are memory leaks “undefined behavior” class problem in C++?
Never calling delete
or delete[]
on address returned by new
or new []
resp in a C++ program is an Undefined Behavior or merely a memory leak?
References from the Standard(if any) are welcome.
This came up in one of the comments here & I am just a bit confused about it.