0

[DUPLICATE] What do you understand by memory leaks and how can it be avoided?

20th Apr 2018, 4:22 PM
Muhammad Omer
Muhammad Omer - avatar
5 Answers
20th Apr 2018, 4:46 PM
Timon Paßlick
+ 2
what was the correct answer then if this post is a duplicate
20th Apr 2018, 4:49 PM
Muhammad Omer
Muhammad Omer - avatar
+ 1
How
20th Apr 2018, 4:30 PM
Muhammad Omer
Muhammad Omer - avatar
+ 1
Just look at the accepted answer and my answer in the linked thread.
20th Apr 2018, 4:50 PM
Timon Paßlick
0
A memory leak is, for example, when you create dynamic data without deleting it. Critical is it in a loop. while (true ) { int* var = new int; //some Code with 'var' delete var; }
20th Apr 2018, 4:34 PM
XiLef