Commit 3a54eb1
committed
Fix memory leak with lower, upper and initcap with ICU-provided collations
The leak happens in str_tolower, str_toupper and str_initcap, which are
used in several places including their equivalent SQL-level functions,
and can only be triggered when using an ICU-provided collation when
converting the input string.
b615920 fixed a similar leak. Backpatch down 10 where ICU collations
have been introduced.
Author: Konstantin Knizhnik
Discussion: https://postgr.es/m/94c0ad0a-cbc2-e4a3-7829-2bdeaf9146db@postgrespro.ru
Backpatch-through: 101 parent f63a5ea commit 3a54eb1
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1584 | 1584 | | |
1585 | 1585 | | |
1586 | 1586 | | |
| 1587 | + | |
1587 | 1588 | | |
1588 | 1589 | | |
1589 | 1590 | | |
| |||
1707 | 1708 | | |
1708 | 1709 | | |
1709 | 1710 | | |
| 1711 | + | |
1710 | 1712 | | |
1711 | 1713 | | |
1712 | 1714 | | |
| |||
1831 | 1833 | | |
1832 | 1834 | | |
1833 | 1835 | | |
| 1836 | + | |
1834 | 1837 | | |
1835 | 1838 | | |
1836 | 1839 | | |
| |||
0 commit comments