From f801bc453c8c74d7cd92482a67b66537e72b4835 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Thu, 10 Nov 2011 11:57:32 -0600 Subject: [PATCH] Fixing memory leak by adding missing autorelease (Thanks, Zac Bowling) --- AFNetworking/AFHTTPClient.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AFNetworking/AFHTTPClient.m b/AFNetworking/AFHTTPClient.m index 65babc1..a812d33 100644 --- a/AFNetworking/AFHTTPClient.m +++ b/AFNetworking/AFHTTPClient.m @@ -315,7 +315,7 @@ static NSString * AFPropertyListStringFromParameters(NSDictionary *parameters) { } if (!operation) { - operation = [[AFHTTPRequestOperation alloc] initWithRequest:urlRequest]; + operation = [[[AFHTTPRequestOperation alloc] initWithRequest:urlRequest] autorelease]; } [operation setCompletionBlockWithSuccess:success failure:failure];