Here is the code:
- (id)copyWithZone:(NSZone*)zone {
ExecutedOrderInfo* copy = [[self class] allocWithZone:zone];
copy.executedPrice = self.executedPrice;
copy.executedQuantity = self.executedQuantity;
return (id)copy;
}
The question is, is it necessary to release "copy" in above code? Or release it when someone called it?