When a computer program does not release resources it has acquired
In computer science, a resource leak is a particular type of resource consumption by a computer program where the program does not release resources it has acquired. This condition is normally the result of a bug in a program. Typical resource leaks include memory leak and handle leak, particularly file handle leaks, though memory is often considered separately from other resources.[1]
Examples of resources available in limited numbers to the operating system include internet sockets, file handles, process table entries, and process identifiers (PIDs). Resource leaks are often a minor problem, causing at most minor slowdown and being recovered from after processes terminate. In other cases resource leaks can be a major problem, causing resource starvation and severe system slowdown or instability, crashing the leaking process, other processes, or even the system.[2] Resource leaks often go unnoticed under light load and short runtimes, and these problems only manifest themselves under heavy system load or systems that remain running for long periods of time.[3]
Resource leaks are particularly a problem for resources available in very low quantities. Leaking a unique resource, such as a lock, is particularly serious, as this causes immediate resource starvation (it prevents other processes from acquiring it) and causes deadlock. Intentionally leaking resources can be used in a denial-of-service attack, such as a fork bomb, and thus resource leaks present a security bug.
^Deitel, Harvey M.; Deitel, Paul J. (2005), C# for Programmers (2nd ed.), Prentice Hall Professional, p. 443, ISBN 9780132465915.
^Russinovich, Mark; Solomon, David; Ionescu, Alex (2012), Windows Internals, Part 1 (6th ed.), Pearson Education, p. 279, ISBN 9780735671300.
^Gregory, Kate (1998), Using Visual C++ 6, Que Publishing, p. 590, ISBN 9780789715395.
In computer science, a resourceleak is a particular type of resource consumption by a computer program where the program does not release resources it...
In computer science, a memory leak is a type of resourceleak that occurs when a computer program incorrectly manages memory allocations in a way that...
only when the object is alive. Thus if there are no object leaks, there are no resourceleaks. RAII is associated most prominently with C++, where it originated...
A handle leak is a type of software bug that occurs when a computer program asks for a handle to a resource but does not free the handle when it is no...
Managing resources is referred to as resource management, and includes both preventing resourceleaks (not releasing a resource when a process has finished using...
The Panama Papers (Spanish: Papeles de Panamá) are 11.5 million leaked documents (or 2.6 terabytes of data) that were published beginning on April 3, 2016...
a long time are usually an error and can cause a resourceleak. Generally, the only kernel resource they occupy is the process table entry, their process...
table entry (concretely the process identifier or PID), and causes a resourceleak. Two additional states are available for processes in systems that support...
corrupted content in v, an incorrect value in the count field, or a resourceleak. Crichton, Alex (24 July 2015). "Rust RFC: Stabilize catch_panic". The...
common anti-pattern, and forgetting to call dispose will still cause a resourceleak. In some cases both techniques are combined, using an explicit dispose...
example, for attackers to repeatedly trigger an oops and an associated resourceleak, which eventually overflows an integer and allows further exploitation...
C++), memory leaks are a very common bug exploited for resource exhaustion. Even if a garbage collected programming language is used, resource exhaustion...
actual running of an API and focuses on monitoring, execution errors, resourceleaks, and error detection. Detected errors are fixed to prevent runtime breakdowns...
didn't "rage quit", I just walked away. I shut off a big cognitive resourceleak. From the beginning of my time tweeting as Seriouspony, that I tweeted...
use of an API Improper use case handling Improper exception handling Resourceleaks, often but not always due to improper exception handling Preprocessing...
memory allocation and destructor checks Memory leaks, e.g. due to lost scope without deallocation Resourceleaks, e.g. due to forgetting to close a file handle...
The Resource Conservation and Recovery Act (RCRA), enacted in 1976, is the principal federal law in the United States governing the disposal of solid waste...
not deallocated, or open files are not closed, causing memory leaks or resourceleaks. These must be done at each return site, which is brittle and can...
Crew resource management or cockpit resource management (CRM) is a set of training procedures for use in environments where human error can have devastating...
than memory leaks in manual systems. Manual memory management has one correctness advantage, which is that it allows automatic resource management via...