Index: src/OFHTTPRequest.m ================================================================== --- src/OFHTTPRequest.m +++ src/OFHTTPRequest.m @@ -394,15 +394,19 @@ result = [[OFHTTPRequestResult alloc] initWithStatusCode: status headers: serverHeaders data: data]; - if (status != 200 && status != 301 && status != 302 && status != 303) + if (status != 200 && status != 301 && status != 302 && status != 303) { + [result release]; @throw [OFHTTPRequestFailedException exceptionWithClass: isa HTTPRequest: self result: result]; + } + + [pool release]; return [result autorelease]; } @end