title: Objective C: Potential Memory Leak in code
body: <p>I ran the 'Analyze' on my code and the result shows a potential memory leak on the following part of my code</p>
  
  <pre><code>NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:urlString]];
  
  //Potential memory leak in code below
  [[NSURLConnection alloc] initWithRequest:request delegate:self];
  </code></pre>
  
  <p>I am not sure how to stop this leak. I tried to add a 'autorelease' to the back but that caused a crash. Any advise on this?</p>
  
  <p>EDIT:</p>
  
  <p>Screenshot of the leak message</p>
  
  <p><img src="https://i.stack.imgur.com/5C9Zu.png" alt="enter image description here"></p>