Commit a03b3b6
committed
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 Eisentraut1 parent 9a24289 commit a03b3b6
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2810 | 2810 | | |
2811 | 2811 | | |
2812 | 2812 | | |
| 2813 | + | |
| 2814 | + | |
2813 | 2815 | | |
2814 | 2816 | | |
2815 | 2817 | | |
| 2818 | + | |
2816 | 2819 | | |
2817 | 2820 | | |
2818 | 2821 | | |
| |||
0 commit comments