Inspectopedia Help

Not released value

Reports the owned objects stored in the local variables or parameters that are not released later or are overwritten by another value before they are released.

 - You take ownership of an object if you create it using a method which name begins with alloc or new or contains copy, or if you send it a retain message.

 - You use release or autorelease to relinquish ownership of an object.

Objective-C memory management rules require each owned object to be released or autoreleased, see Memory Management Programming Guide.

If ARC (Automatic Reference Counting) is on, this inspection is disabled.

Inspection Details

Available in:

AppCode 2023.3


AppCode, 2023.3

Last modified: 13 July 2023