Skip to content

Commit 6e7817b

Browse files
committed
Fix memory leak in function CFTimeZoneCreateWithName
1 parent 9d31226 commit 6e7817b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CoreFoundation/NumberDate.subproj/CFTimeZone.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1594,6 +1594,7 @@ CFTimeZoneRef CFTimeZoneCreateWithName(CFAllocatorRef allocator, CFStringRef nam
15941594
#endif
15951595
CFRelease(dict);
15961596
if (CFEqual(CFSTR(""), name)) {
1597+
CFRelease(baseURL);
15971598
return NULL;
15981599
}
15991600
}

0 commit comments

Comments
 (0)