forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit40a9a16
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 parent7a501bc commit40a9a16
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 | |
---|---|---|---|
| |||
1125 | 1125 |
| |
1126 | 1126 |
| |
1127 | 1127 |
| |
1128 |
| - | |
1129 |
| - | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1130 | 1131 |
| |
1131 | 1132 |
| |
1132 | 1133 |
| |
| |||
1144 | 1145 |
| |
1145 | 1146 |
| |
1146 | 1147 |
| |
1147 |
| - | |
1148 |
| - | |
1149 |
| - | |
1150 |
| - | |
1151 |
| - | |
1152 |
| - | |
1153 |
| - | |
1154 | 1148 |
| |
1155 | 1149 |
| |
1156 | 1150 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2469 | 2469 |
| |
2470 | 2470 |
| |
2471 | 2471 |
| |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
| 2479 | + | |
| 2480 | + | |
| 2481 | + | |
| 2482 | + | |
2472 | 2483 |
| |
2473 | 2484 |
| |
2474 | 2485 |
| |
| 2486 | + | |
2475 | 2487 |
| |
2476 | 2488 |
| |
2477 | 2489 |
| |
|
Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2093 | 2093 |
| |
2094 | 2094 |
| |
2095 | 2095 |
| |
2096 |
| - | |
2097 | 2096 |
| |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
2098 | 2105 |
| |
2099 | 2106 |
| |
2100 | 2107 |
| |
| 2108 | + | |
2101 | 2109 |
| |
2102 | 2110 |
| |
2103 | 2111 |
| |
|
0 commit comments
Comments
(0)