A method for detecting memory leakage of a linked list in a running program,
includes
saving current size of the linked list as a new maximum size of the linked list
when a new element is added to the linked list that causes the current size of
the linked list to exceed a former maximum size of the linked list, determining
whether a first pre-determined period of time has elapsed from when the liked list
was created, and determining whether the new maximum size of the linked list exceeds
the former maximum size of the linked list during a second pre-determined period
of time.