title: NSDictionary Memory leaks
body: <p>I implement a method to return a dictionary in my app. But I find a memory leak using instrument, I tried to figure it out, but I still cannot find it. Can anyone help me out?</p>
  
  <p>Thanks in advance, here is the code for that methods:</p>
  
  <pre><code>-(NSMutableDictionary *)initDict
  {
      NSMutableDictionary *dict = [[NSMutableDictionary alloc]init];
      [dict setObject:self.name forKey:@"Name"];
      //Some similar set object for key here...
      return dict;
  }
  </code></pre>
  
  <p>I think the problem is from allocing memory for dict and not releasing it. But in the method, it seems I cannot release dict. So is there any method to fix the leak?</p>