MugunthKumar/MKNetworkKit — Issue #2: Memory Leaks in NSString+MKNetworkKitAdditions.m
Author: Octavius
Created: 2011-12-02 17:39:36+00:00
State: open

Hi, I used the anazlyzer to detect memory leaks and it showed 2 in NSString+MKNetworkKitAdditions.m:

+ (NSString*) uniqueString
{
CFUUIDRef	uuidObj = CFUUIDCreate(nil);//create a new UUID
//get the string representation of the UUID
NSString	*uuidString = (__bridge NSString*)CFUUIDCreateString(nil, uuidObj);
//if (uuidString != nil)

CFRelease(uuidObj);
return uuidString; //In this line appears the leak: Potential leak of an object allocated on line 49 and stored into 'uuidString'
}