Handle leak

A page from the Harvard Mark II electromechanical computer's log, featuring a dead moth that was removed from the device.

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 longer used.

- Handle leak

4 related topics

Relevance

Memory leak

Type of resource leak that occurs when a computer program incorrectly manages memory allocations in a way that memory which is no longer needed is not released.

The "sawtooth" pattern of memory utilization: the sudden drop in used memory is a candidate symptom for a memory leak.

And because object destructors can free resources other than memory, RAII helps to prevent the leaking of input and output resources accessed through a handle, which mark-and-sweep garbage collection does not handle gracefully.

Software bug

Error, flaw or fault in the design, development, or operation of computer software that causes it to produce an incorrect or unexpected result, or to behave in unintended ways.

A page from the Harvard Mark II electromechanical computer's log, featuring a dead moth that was removed from the device.
Error resulting from a software bug displayed on two screens at La Croix de Berny station in France.
The typical bug history (GNU Classpath project data). A new bug submitted by the user is unconfirmed. Once it has been reproduced by a developer, it is a confirmed bug. The confirmed bugs are later fixed. Bugs belonging to other categories (unreproducible, will not be fixed, etc.) are usually in the minority

Resource leaks, where a finite system resource (such as memory or file handles) become exhausted by repeated allocation without release.

Handle (computing)

Not to be confused with Handlers.

Ada Lovelace, whose notes added to the end of Luigi Menabrea's paper included the first algorithm designed for processing by an Analytical Engine. She is often recognized as history's first computer programmer.

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 longer used; this is a form of resource leak, similar to a memory leak for a pointer to memory.

Resource leak

Particular type of resource consumption by a computer program where the program does not release resources it has acquired.

Charles Babbage, sometimes referred to as the "father of computing".

Typical resource leaks include memory leak and handle leak, particularly file handle leaks, though memory is often considered separately from other resources.