Methods, systems, and media to enhance memory leakage management by
identifying a suspect allocation pattern during execution of a task,
which may be indicative of memory leakage and implementing measures to
protect against memory leakage based upon the suspect allocation pattern,
are disclosed. More specifically, embodiments may detect a suspect
allocation pattern by monitoring memory allocations and deallocations for
tasks. The pattern of memory allocations and deallocations may then be
analyzed to determine whether a suspect allocation pattern exists. For
instance, the memory allocations and deallocations may be compared to
determine whether there is an increasing net residual allocation left by
the task after it has reached a quiescent runtime state. In some
embodiments, a suspect allocation pattern exists if the total memory
allocation for a task continues to rise after a pre-determined time
period.