mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-22826 Fix memory leak
This commit is contained in:
parent
dd65ee3f0b
commit
bca5fa5004
1 changed files with 1 additions and 0 deletions
|
@ -1193,6 +1193,7 @@ TimeZoneGenericNames::createInstance(const Locale& locale, UErrorCode& status) {
|
|||
}
|
||||
}
|
||||
if (U_FAILURE(status)) {
|
||||
delete instance;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue