Why Instruments report a leak?
<p>I am developing an iphone app. Instruments reported a leaked object ServiceTypes. Below is the relevant code. Does anyone have any ideas? Thanks a lot for your help.</p>

<pre><code>ServiceTypes *serviceTypes = [[ServiceTypes alloc] init];

if ([userConnection getServiceTypes:serviceTypes]) {
    if ([serviceTypes.types length] &gt; 0) {
        NSArray *array = [[NSArray alloc] initWithArray:[serviceTypes.types componentsSeparatedByString: SERVICE_TYPE_DELIMITOR]];
        serviceRequestTypes = [[NSMutableArray alloc] initWithArray:array];
        [array release];
    }
}

[[self typesTableView] reloadData];
[serviceTypes release];
</code></pre>
