If you select an object explicitly using alloc, you need to free it. Same thing with copy.
An identifier is a pointer, so when you assign it, it only assigns the value of a pointer, so you do not need to highlight both variables, since they will refer to the same object. If you do, you will definitely get segfault.
source share