cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
memory leak
memory leak
Oct 13, 2009 at 6:06am UTC
ant
(3)
Will the following code cause memory leak? how?
char *c1 = new char[10];
char *c2 = c1;
delete c2;
Is it because delete[] is not used? will that be called memory leak?
Oct 13, 2009 at 7:59am UTC
Abramus
(285)
http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.12
Topic archived. No new replies allowed.