Memory overflow and memory leak
Memory overflow out of memory means that when the program applies for memory, it does not have enough memory space for its use, resulting in out of memory.
Memory leak memory leak means that the program is unable to release the requested memory space after requesting memory. The harm of a memory leak can be ignored, but the consequence of memory leak accumulation is very serious, no matter how much memory, it will be occupied sooner or later.
Memory leak will eventually lead to out of memory!
Signs of memory leak: in the old days, when garbage was collected, it could not be all recycled, and it took up more memory at a time.