commit | c01e304265cb89a61096d57b3eda91c8d6aeccfa | [log] [tgz] |
---|---|---|
author | gnrunge <41129501+gnrunge@users.noreply.github.com> | Wed Sep 26 16:04:29 2018 -0700 |
committer | GitHub <noreply@github.com> | Wed Sep 26 16:04:29 2018 -0700 |
tree | 09abb01128b923c0c48a58b7e9a20bc0584047cf | |
parent | 8dddb3a880cdba99fdd4d9d47abe1a65f5eb9436 [diff] |
ICU-20168 Fix memory leak in error path, add a free statement. (#175)
diff --git a/icu4c/source/common/uloc_tag.cpp b/icu4c/source/common/uloc_tag.cpp index c718de7..17af4f7 100644 --- a/icu4c/source/common/uloc_tag.cpp +++ b/icu4c/source/common/uloc_tag.cpp
@@ -1507,6 +1507,7 @@ attrBufIdx += (len + 1); } else { *status = U_ILLEGAL_ARGUMENT_ERROR; + uprv_free(attr); goto cleanup; }