mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 21:45:37 +00:00
ICU-23011 Add else branch for remove possible CWE-476
This commit is contained in:
parent
92b52ae6e3
commit
d61ec78c93
1 changed files with 4 additions and 3 deletions
|
@ -87,10 +87,11 @@ MFFunctionRegistry::Builder::Builder(UErrorCode& errorCode) {
|
|||
formattersByType = new Hashtable();
|
||||
if (!(formatters != nullptr && selectors != nullptr && formattersByType != nullptr)) {
|
||||
errorCode = U_MEMORY_ALLOCATION_ERROR;
|
||||
} else {
|
||||
formatters->setValueDeleter(uprv_deleteUObject);
|
||||
selectors->setValueDeleter(uprv_deleteUObject);
|
||||
formattersByType->setValueDeleter(uprv_deleteUObject);
|
||||
}
|
||||
formatters->setValueDeleter(uprv_deleteUObject);
|
||||
selectors->setValueDeleter(uprv_deleteUObject);
|
||||
formattersByType->setValueDeleter(uprv_deleteUObject);
|
||||
}
|
||||
|
||||
MFFunctionRegistry::Builder::~Builder() {
|
||||
|
|
Loading…
Add table
Reference in a new issue