forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ae05c1
committed
Fix query result leak during binary upgrade
9a974cb moved the query in binary_upgrade_set_pg_class_oids to theouter level, but left the PQclear and query buffer destruction in theis_index conditional.353708e fixed the leak of the query bufferbut left the PGresult leak. This moves clearing the result to the outerlevel ensuring that it will be called.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/374550C1-F4ED-4D9D-9498-0FD029CCF674@yesql.seBackpatch-through: v151 parent315661e commit0ae05c1
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5127 | 5127 |
| |
5128 | 5128 |
| |
5129 | 5129 |
| |
5130 |
| - | |
5131 |
| - | |
5132 | 5130 |
| |
5133 | 5131 |
| |
5134 | 5132 |
| |
| |||
5141 | 5139 |
| |
5142 | 5140 |
| |
5143 | 5141 |
| |
| 5142 | + | |
| 5143 | + | |
5144 | 5144 |
| |
5145 | 5145 |
| |
5146 | 5146 |
| |
|
0 commit comments
Comments
(0)