-(NSMutableArray *)processResult:(NSArray*)matchArray
removeString:(NSString *)removeStr{
NSString *newLink;
NSMutableArray *result = [[NSMutableArray alloc] initWithCapacity:[matchArray count]];
//doing sth to result
return result;
}
In this scenario, as the result variable will be returned to the caller. And the caller will use this variable through the life time of the app. Is there any way to free the created in this method?