Skip to content

Commit e837b67

Browse files
committed
Adds conditional release
1 parent bf6b481 commit e837b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CoreFoundation/NumberDate.subproj/CFTimeZone.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,8 @@ CFTimeZoneRef CFTimeZoneCreateWithName(CFAllocatorRef allocator, CFStringRef nam
15941594
#endif
15951595
CFRelease(dict);
15961596
if (CFEqual(CFSTR(""), name)) {
1597-
CFRelease(baseURL);
1597+
if (baseURL) CFRelease(baseURL);
1598+
if (data) CFRelease(data);
15981599
return NULL;
15991600
}
16001601
}

0 commit comments

Comments
 (0)