Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICU-20802 Need to use LocalMemory in uloc_openKeywordList, not LocalPointer #805

Merged
merged 1 commit into from
Aug 31, 2019

Conversation

jefgen
Copy link
Member

@jefgen jefgen commented Aug 31, 2019

We need to use LocalMemory instead of LocalPointer in the function uloc_openKeywordList.

Both UEnumeration and UKeywordsContext are expected to be eventually released with uprv_free as they are supposed to be allocated with uprv_malloc. Using a LocalPointer means they would be allocated with operator new instead.

Thanks to @markusicu for catching this!

Checklist

@jefgen jefgen requested review from markusicu and daniel-ju August 31, 2019 03:50
@jefgen jefgen force-pushed the jefgen/ICU-20802_use_LocalMemory branch from f757338 to efbc28d Compare August 31, 2019 03:54
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • icu4c/source/common/uloc.cpp is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@markusicu markusicu self-assigned this Aug 31, 2019
Copy link
Member

@markusicu markusicu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm tnx!

@jefgen jefgen merged commit d89c490 into unicode-org:master Aug 31, 2019
@jefgen jefgen deleted the jefgen/ICU-20802_use_LocalMemory branch August 31, 2019 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants