ICU-22826 Fix memory leak

This commit is contained in:
Frank Tang 2024-07-31 14:57:45 -07:00 committed by Frank Yung-Fong Tang
parent dd65ee3f0b
commit bca5fa5004

View file

@ -1193,6 +1193,7 @@ TimeZoneGenericNames::createInstance(const Locale& locale, UErrorCode& status) {
}
}
if (U_FAILURE(status)) {
delete instance;
return nullptr;
}