From 72fe8fc5193ec31ea84208236b731d93e68eef69 Mon Sep 17 00:00:00 2001 From: zaibugemi <34958019+zaibugemi@users.noreply.github.com> Date: Sun, 14 Oct 2018 01:02:36 +0500 Subject: [PATCH] Add information about memory leaks (#18392) --- .../guide/english/cplusplus/dynamic-memory-allocation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/guide/english/cplusplus/dynamic-memory-allocation/index.md b/client/src/pages/guide/english/cplusplus/dynamic-memory-allocation/index.md index c51bd7afe6..552e9203fd 100644 --- a/client/src/pages/guide/english/cplusplus/dynamic-memory-allocation/index.md +++ b/client/src/pages/guide/english/cplusplus/dynamic-memory-allocation/index.md @@ -30,5 +30,5 @@ title: Dynamic Memory Allocation `delete ptr2`; ### Memory Leaks - Leaks are caused when you fail to deallocate dynamic memory you allocated via `New` operator at the end of your program. If you do not deallocate it with the Delete operator, your computer will keep creating new memory in the heap every time the program runs. This causes your computer to slow down because memory is not deleted and your available memory decreases. + Leaks are caused when you fail to deallocate dynamic memory you allocated via `New` operator at the end of your program. If you do not deallocate it with the Delete operator, your computer will keep creating new memory in the heap every time the program runs. This causes your computer to slow down because memory is not deleted and your available memory decreases. Many computer programs cause memory leaks over time. However, when you reboot the machine, it will resolve the issue. This is because rebooting releases those spaces in heap memory that were causing memory leaks.