CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Previous
Contents
Next
Keyword Index
Memory Leaks
Lost heap-dynamic variables (garbage):
A heap-dynamic variable that is no longer referenced by any program pointer
Creating one:
Pointer p1 is set to point to a newly created heap-dynamic variable
p1 is later set to point to another newly created heap-dynamic variable
The process of losing heap-dynamic variables is called memory leakage