forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit034d05d
committed
Free SQLSTATE and SQLERRM no earlier than other PL/pgSQL variables.
"RETURN SQLERRM" prompted plpgsql_exec_function() to read from freedmemory. Back-patch to 9.0 (all supported versions). Little code ranbetween the premature free and the read, so non-assert builds areunlikely to witness user-visible consequences.1 parentf7b4190 commit034d05d
File tree
3 files changed
+24
-10
lines changed- src
- pl/plpgsql/src
- test/regress
- expected
- sql
3 files changed
+24
-10
lines changedLines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1123 | 1123 |
| |
1124 | 1124 |
| |
1125 | 1125 |
| |
1126 |
| - | |
1127 |
| - | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1128 | 1129 |
| |
1129 | 1130 |
| |
1130 | 1131 |
| |
| |||
1148 | 1149 |
| |
1149 | 1150 |
| |
1150 | 1151 |
| |
1151 |
| - | |
1152 |
| - | |
1153 |
| - | |
1154 |
| - | |
1155 |
| - | |
1156 |
| - | |
1157 |
| - | |
1158 | 1152 |
| |
1159 | 1153 |
| |
1160 | 1154 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2498 | 2498 |
| |
2499 | 2499 |
| |
2500 | 2500 |
| |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
2501 | 2512 |
| |
2502 | 2513 |
| |
2503 | 2514 |
| |
| 2515 | + | |
2504 | 2516 |
| |
2505 | 2517 |
| |
2506 | 2518 |
| |
|
Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2118 | 2118 |
| |
2119 | 2119 |
| |
2120 | 2120 |
| |
2121 |
| - | |
2122 | 2121 |
| |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
2123 | 2130 |
| |
2124 | 2131 |
| |
2125 | 2132 |
| |
| 2133 | + | |
2126 | 2134 |
| |
2127 | 2135 |
| |
2128 | 2136 |
| |
|
0 commit comments
Comments
(0)