Learn Before
Concept
Memory Leaks
A memory leak is when memory is allocated in the heap memory, but is never deallocated. To avoid this, heap memory allocations should always be deallocated when no longer needed. When memory leaks are present, the available memory can shrink over time, slow down the performance of the program, and could eventually result in an out of memory error. While Python has a garbage collector to help prevent this, memory leaks can still happen in Python depending on the code.
0
1
Updated 2021-06-10
Tags
Python Programming Language
Data Science