getting leak from web service
<p>I am new to iPhone Development.I am getting leak when i call web service.
Here is code : </p>

<pre><code>- (void)asynchronousRequestServerWithXMLPost:(NSString *)urlAddress PostData:(NSString *)postContent {

    NSString *immutableString = [NSString stringWithString:urlAddress];
    NSString* str_URL = [self encodeStringForURL:immutableString];
    theRequest = [[[NSMutableURLRequest alloc] init]autorelease];
    [theRequest setURL:[NSURL URLWithString:str_URL]];
    if([postContent length] &gt; 0) {
        [theRequest setHTTPMethod:@"POST"];
    } else {
        [theRequest setHTTPMethod:@"GET"];
    }

    NSData *theBodyData = [postContent dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];
    [theRequest setValue:@"application/x-www-form-urlencoded charset=utf-8" forHTTPHeaderField:@"Content-Type"];
    NSString *postLength = [NSString stringWithFormat:@"%d", [theBodyData length]];
    [theRequest setValue:postLength forHTTPHeaderField:@"Content-Length"];
    [theRequest setHTTPBody:theBodyData];    

    [theRequest retain];
    [NSThread detachNewThreadSelector:@selector(sendSyncRequest) toTarget:self withObject:nil];

}
</code></pre>

<p>getting leak from :</p>

<pre><code>NSData *theBodyData = [postContent dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];
[theRequest setValue:@"application/x-www-form-urlencoded charset=utf-8" forHTTPHeaderField:@"Content-Type"];
NSString *postLength = [NSString stringWithFormat:@"%d", [theBodyData length]];
[theRequest setHTTPBody:theBodyData];
</code></pre>

<p>please help me.Thanking you.  </p>
