forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4a67565
committed
Fix within-function memory leaks in the various PLs' interfaces to
SPI_prepare: they all save the prepared plan into topCxt, and so theprocCxt copy that's actually returned by SPI_prepare ought to be freed.Diagnosis and plpython fix by Nigel Andrews, followup for other PLsby Tom Lane.1 parent30c2b5e commit4a67565
3 files changed
+19
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
2018 | 2018 | | |
2019 | 2019 | | |
2020 | 2020 | | |
| 2021 | + | |
2021 | 2022 | | |
2022 | 2023 | | |
2023 | 2024 | | |
| |||
2544 | 2545 | | |
2545 | 2546 | | |
2546 | 2547 | | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
2547 | 2551 | | |
2548 | 2552 | | |
2549 | 2553 | | |
2550 | 2554 | | |
| 2555 | + | |
2551 | 2556 | | |
2552 | 2557 | | |
2553 | 2558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | | - | |
1841 | | - | |
1842 | | - | |
1843 | | - | |
1844 | | - | |
1845 | | - | |
1846 | | - | |
1847 | | - | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
1851 | | - | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
| 1840 | + | |
1855 | 1841 | | |
1856 | 1842 | | |
1857 | 1843 | | |
| |||
2023 | 2009 | | |
2024 | 2010 | | |
2025 | 2011 | | |
| 2012 | + | |
2026 | 2013 | | |
2027 | 2014 | | |
2028 | 2015 | | |
| |||
2062 | 2049 | | |
2063 | 2050 | | |
2064 | 2051 | | |
2065 | | - | |
2066 | 2052 | | |
2067 | 2053 | | |
2068 | 2054 | | |
| |||
2125 | 2111 | | |
2126 | 2112 | | |
2127 | 2113 | | |
2128 | | - | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
2129 | 2118 | | |
2130 | 2119 | | |
2131 | 2120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
1285 | 1285 | | |
1286 | 1286 | | |
1287 | 1287 | | |
1288 | | - | |
| 1288 | + | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | 1291 | | |
| |||
1837 | 1837 | | |
1838 | 1838 | | |
1839 | 1839 | | |
1840 | | - | |
| 1840 | + | |
| 1841 | + | |
1841 | 1842 | | |
1842 | 1843 | | |
1843 | 1844 | | |
| |||
1866 | 1867 | | |
1867 | 1868 | | |
1868 | 1869 | | |
| 1870 | + | |
| 1871 | + | |
1869 | 1872 | | |
1870 | 1873 | | |
1871 | 1874 | | |
| |||
0 commit comments
Comments
(0)