Reachability
Reachability copied to clipboard
Memory leaks when Analyzing in iOS 9 (Xcode 7).
Leaks showing in methods "reachabilityWithHostname:" and "reachabilityWithAddress:".
Line numbers 101 and 114 in Reachability.m
Potential leak of an object stored into 'ref'
Attached the screenshot of the issue.

Duplicate of #114.
You can write CFRelease(ref) below the issue row.
Sadly just releasing them like that won't work. It will result in an assertion fault:
Assertion failed: (lock), function SCNetworkReachabilityGetFlags, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/configd_Sim/configd-802.40.13/SystemConfiguration.fproj/SCNetworkReachability.c, line 1181.
You need CFAutorelease(ref) instead of CFRelease(ref)
Adding CFAutorelease(ref). And we need to remove the following from dealloc?
if(self.reachabilityRef)
{
CFRelease(self.reachabilityRef);
self.reachabilityRef = nil;
}