pgsql: Avoid potential UCollator leak for older ICU versions.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid potential UCollator leak for older ICU versions.
Date: 2023-03-24 16:10:27
Message-ID: E1pfjzn-005B58-5Y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a03b3b6b4a7275a66e38280f49fddb9aec8dff3d

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2023-03-24 16:44:11 pgsql: meson: Fix oversight in install-quiet
Previous Message Robert Haas 2023-03-24 15:13:52 pgsql: amcheck: Fix verify_heapam for tuples where xmin or xmax is 0.