memory leak detected by ASAN

Description

Leak in source/common/locid.cpp:1362

should delete the item when return w/ FAILURE

```
if (item == nullptr) {
item = new CharString(replacement,
(int32_t)(firstSpace - replacement), status);
}
if (U_FAILURE(status)) { return false; }
```
for the return false of U_FAILURE(status) we need to delete item.

Activity

Show:
Frank Yung-Fong Tang
December 2, 2020, 7:13 PM
Markus Scherer
December 1, 2020, 1:16 AM

Please see if item can become a LocalPointer.

Fixed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Frank Yung-Fong Tang

Reporter

Frank Yung-Fong Tang

Components

Labels

Priority

minor

Time Needed

Hours

Fix versions