Commit a8f87d5
committed
Fix query result leak during binary upgrade
9a974cb moved the query in binary_upgrade_set_pg_class_oids to the
outer level, but left the PQclear and query buffer destruction in the
is_index conditional. 353708e fixed the leak of the query buffer
but left the PGresult leak. This moves clearing the result to the outer
level 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.se
Backpatch-through: v151 parent 98b4f53 commit a8f87d5
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5479 | 5479 | | |
5480 | 5480 | | |
5481 | 5481 | | |
5482 | | - | |
5483 | | - | |
5484 | 5482 | | |
5485 | 5483 | | |
5486 | 5484 | | |
| |||
5493 | 5491 | | |
5494 | 5492 | | |
5495 | 5493 | | |
| 5494 | + | |
| 5495 | + | |
5496 | 5496 | | |
5497 | 5497 | | |
5498 | 5498 | | |
| |||
0 commit comments