The receiver, in most cases, will handle memory allocation. Who releases him depends on how you determine the right of ownership. Is the memory allocated by the recipient no longer needed after it is returned? If so, you should probably mention in your documentation that the caller needs to free the returned array. If the receiver can reuse the returned memory, leave it free.
, , , :
- (NSUInteger) mapPointCount;
- (void) getMapPoints:(MKMapPoint *)pointsOut;
obj.mapPointCount MKMapPoints . / .
, // , , . , , const MKMapPoint * - (, , , , ).
, NSData - , . , , , . , , , , .