Skip to content

Commit

Permalink
ICU-22826 Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankYFTang committed Aug 1, 2024
1 parent dd65ee3 commit bca5fa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions icu4c/source/i18n/tzgnames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,7 @@ TimeZoneGenericNames::createInstance(const Locale& locale, UErrorCode& status) {
}
}
if (U_FAILURE(status)) {
delete instance;
return nullptr;
}

Expand Down

0 comments on commit bca5fa5

Please sign in to comment.