Skip to content

Commit 9aae474

Browse files
committed
SDK-562 fix issue found by static analyzer
1 parent 755b06c commit 9aae474

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Branch-SDK/Branch-SDK/BNCReachability.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,11 @@ - (nullable NSString *)reachabilityStatus {
101101
return [self translateReachabilityStatus:[self currentReachabilityStatus]];
102102
}
103103

104+
- (void)dealloc {
105+
if (self.reachability) {
106+
CFRelease(self.reachability);
107+
self.reachability = nil;
108+
}
109+
}
110+
104111
@end

0 commit comments

Comments
 (0)