Daily iOS
Memory and ARC

Retain cycle vs memory leak

Are "reference cycle" and "memory leak" the same thing?

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

A reference cycle is just one cause of a leak. A leak is any memory that's no longer useful but stays around for the life of the app; a reference cycle is the specific pattern among those that ARC can't resolve on its own.

Share a question