]> granicus.if.org Git - icu/commit
ICU-20169 Replace uprv_malloc() / uprv_free() with MemoryPool.
authorFredrik Roubert <roubert@google.com>
Fri, 2 Nov 2018 16:50:34 +0000 (17:50 +0100)
committerFredrik Roubert <fredrik@roubert.name>
Wed, 7 Nov 2018 16:58:14 +0000 (17:58 +0100)
commit93e84caa65938a87421869f6603c7ee5ce00f546
tree695b8e6dd361ef0f2205f23003105cfe54feb41e
parent710212c49585e36d948e5134cdbdfb78e5bed079
ICU-20169 Replace uprv_malloc() / uprv_free() with MemoryPool.

This resolves the immediate problem of brittle memory management
in the error handling code.

An obvious future improvement would be to replace the old C style
"plain struct with pointers" VariantListEntry, AttributeListEntry
and ExtensionListEntry with contemporary C++ style containers that
take care of ownership and memory management.
icu4c/source/common/uloc_tag.cpp