Today, there is an interview in Dalian, was asked the memory leak and the difference between the pointer pointing, his answer is not very good, specifically back to check the information, in blog post summary of experience, welcome correction.
memory leak: refers to the heap area, alloc or new created an object, but did not put in the automatic release pool, or no free object, causing the memory has been occupied, in other words, there is no pointer to the memory, then popular point, opened up a space, This memory is not found until it is released, causing a memory leak. This memory will not be released until the program is finished running.
Wild pointer: A pointer to an object that has been delete, or a restricted area that has not been applied for access, causes the wild pointer to point and directly collapses the program.
For the time being only so much, if there is a new understanding and then add to the above.
Finally, the sentence, Daniel smiled, mutual excitation one another, welcome criticism.
iOS Development _ The difference between memory leaks, memory overflows, and wild pointers