difference between memory overflow and memory leak

Memory overflow out of memory means that when the program applies for memory, there is not enough memory space for it to use, and out of memory occurs.

 

Memory leak memory leak means that the program cannot release the memory space that has been applied after applying for memory. The harm of a memory leak can be ignored, but the accumulation of memory leaks has serious consequences. No matter how much memory, it will be occupied sooner or later.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324845231&siteId=291194637