Skip to content

Commit 3057677

Browse files
authored
Merge pull request swiftlang#2818 from valeriyvan/CFDateIntervalFormatterLeak
2 parents d97be9a + da183ad commit 3057677

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CoreFoundation/Locale.subproj/CFDateIntervalFormatter.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static void updateFormatter(CFDateIntervalFormatterRef dif) {
132132

133133
char localeBuffer[100] = {0};
134134
CFStringGetCString(localeID, localeBuffer, 100, kCFStringEncodingUTF8);
135-
135+
136136
UniChar timeZoneID[100] = {0};
137137
CFTimeZoneRef timeZone = dif->_timeZone;
138138
if (timeZone) {
@@ -179,6 +179,7 @@ static void updateFormatter(CFDateIntervalFormatterRef dif) {
179179
#endif
180180

181181
CFRelease(locale);
182+
CFRelease(localeID);
182183
CFRelease(timeZone);
183184
}
184185
}

0 commit comments

Comments
 (0)