title: -[NSString componentsSeparatedByString:] leak
body: <p>I have the following code:</p>
  
  <pre><code>NSString *indexText = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
  if (indexText==nil) {
      [indexText release];
      indexText = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
  }
  [data release];
  NSAutoreleasePool *innerPool = [NSAutoreleasePool new];
  NSArray *packageList = [indexText componentsSeparatedByString:@"\n\n"]; //if commented out, there's no leak
  [indexText release];
  [innerPool drain];
  </code></pre>
  
  <p>I'm performing a <code>componentsSeparatedByString:</code> on <code>indexText</code>, but I leak quite a bit of memory, despite that fact that <code>packageList</code> is autoreleased (proven by the fact that the code crashes if I try to release it again). When I comment out the line with <code>componentsSeparatedByString:</code>, the leak disappears.</p>
  
  <p>By the way, I'm viewing memory usage in Activity Monitor whilst running iPhone Simulator; Instruments doesn't detect a leak. Is the leak just an illusion, a peculiarity of the Simulator?</p>