ICU-20168 Fix memory leak in error path, add a free statement. ()

This commit is contained in:
gnrunge 2018-09-26 16:04:29 -07:00 committed by Shane Carr
parent 53986cc57d
commit 39b98c8a6b
No known key found for this signature in database
GPG key ID: FCED3B24AAB18B5C

View file

@ -1507,6 +1507,7 @@ _appendLDMLExtensionAsKeywords(const char* ldmlext, ExtensionListEntry** appendT
attrBufIdx += (len + 1);
} else {
*status = U_ILLEGAL_ARGUMENT_ERROR;
uprv_free(attr);
goto cleanup;
}