Daily iOS
Memory and ARC

Proving a leak fix

Think of a memory leak you actually ran into. How did you find it, how did you pin down the cause, and how did you prove it was fixed?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Reproduce (memory climbing in steps as you re-enter a screen) → pin down (the reference path of an instance that shouldn't be alive in Memory Graph Debugger, Instruments Allocations Generations) → fix → prove (deinit log or breakpoint, and compare the Persistent count after repeating the same scenario before and after).

Share a question