- Notifications
You must be signed in to change notification settings - Fork5
Commitb1bc2f0
committed
Fix multiple memory leaks in PLy_spi_execute_fetch_result: it would leak
memory if the result had zero rows, and also if there was any sort of errorwhile converting the result tuples into Python data. Reported and partiallyfixed by Andres Freund.Back-patch to all supported versions. Note: I haven't tested the 7.4 fix.7.4's configure check for python is so obsolete it doesn't work on mycurrent machines :-(. The logic change is pretty straightforward though.1 parent0954358 commitb1bc2f0
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
3147 | 3147 |
| |
3148 | 3148 |
| |
3149 | 3149 |
| |
3150 |
| - | |
3151 |
| - | |
3152 |
| - | |
3153 | 3150 |
| |
3154 | 3151 |
| |
3155 | 3152 |
| |
| |||
3160 | 3157 |
| |
3161 | 3158 |
| |
3162 | 3159 |
| |
3163 |
| - | |
3164 | 3160 |
| |
| 3161 | + | |
| 3162 | + | |
3165 | 3163 |
| |
3166 | 3164 |
| |
3167 | 3165 |
| |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
3168 | 3169 |
| |
3169 | 3170 |
| |
3170 | 3171 |
| |
|
0 commit comments
Comments
(0)