mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-20168 Fix memory leak in error path, add a free statement. (#175)
This commit is contained in:
parent
53986cc57d
commit
39b98c8a6b
1 changed files with 1 additions and 0 deletions
|
@ -1507,6 +1507,7 @@ _appendLDMLExtensionAsKeywords(const char* ldmlext, ExtensionListEntry** appendT
|
|||
attrBufIdx += (len + 1);
|
||||
} else {
|
||||
*status = U_ILLEGAL_ARGUMENT_ERROR;
|
||||
uprv_free(attr);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue