Memory Leak & Memory Overflow


Memory Leak : it occurs when a computer program consumes memory but is unable to release it back to the operating system. In object-oriented programming, a memory leak happens when an object is stored in memory but cannot be accessed by the running code.

Memory Overflow : it occurs where a program, while writing data to a buffer, overruns the buffer’s boundary and overwrites adjacent memory.

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.