When a computer program fails to release unnecessary memory
Program execution
General concepts
Code
Translation
Compiler
Compile time
Optimizing compiler
Intermediate representation (IR)
Execution
Runtime system
Runtime
Executable
Interpreter
Virtual machine
Types of code
Source code
Object code
Bytecode
Machine code
Microcode
Compilation strategies
Ahead-of-time (AOT)
Just-in-time (JIT)
Tracing just-in-time
Compile and go system
Precompilation
Transcompilation
Recompilation
Notable runtimes
Android Runtime (ART)
BEAM
Common Language Runtime (CLR) and Mono
CPython and PyPy
crt0
Java virtual machine (JVM)
LuaJIT
Objective-C and Swift's
V8 and Node.js
Zend Engine
TempleOS
Notable compilers & toolchains
GNU Compiler Collection (GCC)
LLVM and Clang
MSVC
v
t
e
In computer science, a memory leak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations[1] in a way that memory which is no longer needed is not released. A memory leak may also happen when an object is stored in memory but cannot be accessed by the running code (i.e. unreachable memory).[2] A memory leak has symptoms similar to a number of other problems and generally can only be diagnosed by a programmer with access to the program's source code.
A related concept is the "space leak", which is when a program consumes excessive memory but does eventually release it.[3]
Because they can exhaust available system memory as an application runs, memory leaks are often the cause of or a contributing factor to software aging.
^Crockford, Douglas. "JScript Memory Leaks". Archived from the original on 7 December 2012. Retrieved 20 July 2022.
^"Creating a memory leak with Java". Stack Overflow. Retrieved 2013-06-14.
^Mitchell, Neil. "Leaking Space". Retrieved 27 May 2017.
science, a memoryleak is a type of resource leak that occurs when a computer program incorrectly manages memory allocations in a way that memory which is...
term is derived from memoryleak. Handle leaks, like memoryleaks, are specific instances of resource leaks. One cause of a handle leak is when a programmer...
of memory is a common cause of bugs and security vulnerabilities, including the following types: A memoryleak occurs when a program requests memory from...
computer programming, the lapsed listener problem is a common source of memoryleaks for object-oriented programming languages, among the most common ones...
that no memory is ever "lost" (i.e. that there are no "memoryleaks"). The specific dynamic memory allocation algorithm implemented can impact performance...
A memory debugger is a debugger for finding software memory problems such as memoryleaks and buffer overflows. These are due to bugs related to the allocation...
programming tool for memory debugging, memoryleak detection, and profiling. Valgrind was originally designed to be a freely licensed memory debugging tool...
Solaris, bcheck ( batch utility for Runtime Checking (RTC)), is a memory access and memoryleak checking tool based on dbx. Studio 12.2 bcheck documentation...
in a program. Typical resource leaks include memoryleak and handle leak, particularly file handle leaks, though memory is often considered separately...
dangling pointers, though they are less likely to stay undetected. Memoryleak – when memory usage is not tracked or is tracked incorrectly Stack exhaustion...
this is known as a memoryleak. In some cases, memoryleaks may be tolerable, such as a program which "leaks" a bounded amount of memory over its lifetime...
that can also lead to problems. Memoryleaks Failure to deallocate memory using free leads to buildup of non-reusable memory, which is no longer used by the...
Memwatch is a free programming tool for memoryleak detection in C, released under the GNU General Public License. It is designed to compile and run on...
example, a well-behaved app has to co-exist with an application that has a memoryleak. Without protection such as afforded by WSRM, the app runs more slowly...
result, data from Cloudflare customers was leaked to all other Cloudflare customers that had access to server memory. This occurred, according to numbers provided...
explicitly deallocated. Unreachable memory in systems that use manual memory management results in a memoryleak. Some garbage collectors implement weak...
be used to implement a memoryleak.[citation needed] The first mention of FINO appears in the Signetics 25120 write-only memory joke datasheet. Bit bucket...
calls. Memory debugger Dmalloc Official web site Dmalloc Github web site MemoryLeak Detection in Embedded Systems Using Dmalloc With the Solaris OS and Sun...
sleeping laptops with MagSafe (fixed with 12.1 update) Mouse pointer memoryleak issue (fixed with 12.1 update) Audio issue with speaker and audio output...
2021. Retrieved 2020-06-01. Preston-Werner, Tom (July 20, 2008). God's memoryleak - a scientific treatment. RubyFringe. Archived from the original on January...
memory error debugger for C, C++, and Fortran applications that run on Windows and Linux. Purify: Mainly memory corruption detection and memoryleak detection...
Some other debugging tools have been designed to work with GDB, such as memoryleak detectors. GDB uses a system call named ptrace (the name is an abbreviation...
Future Lies Ahead". 28 June 2006. Retrieved 19 November 2006. Weird "memoryleak" problem in AOLserver 3.4.2/3.x 12 May 2006 "When does the 64-bit Unix...