Avoid potential UCollator leak for older ICU versions.
Jeff Davis <jdavis@postgresql.org>
Avoid potential UCollator leak for older ICU versions. ICU versions 53 and earlier rely on icu_set_collation_attributes() to process the attributes in the locale string. Avoid leaking the already-opened UCollator object if an error is encountered. Discussion: https://postgr.es/m/04182066-7655-344a-b8b7-040b1b2490fb%40enterprisedb.com Reviewed-by: Peter Eisentraut
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/pg_locale.c | modified | +3 −0 |
Discussion
- ICU locale validation / canonicalization 46 messages · 2023-02-08 → 2023-07-07