Commit 821386a
committed
Fix use of already freed memory when dumping a database's security label.
pg_dump.c:dumDatabase() called ArchiveEntry() with the results of a a
query that was PQclear()ed a couple lines earlier.
Backpatch to 9.2 where security labels for shared objects where
introduced.1 parent c8ef5b1 commit 821386a
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2112 | 2112 | | |
2113 | 2113 | | |
2114 | 2114 | | |
2115 | | - | |
2116 | | - | |
2117 | 2115 | | |
2118 | 2116 | | |
2119 | 2117 | | |
2120 | | - | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
2121 | 2122 | | |
2122 | 2123 | | |
2123 | | - | |
| 2124 | + | |
2124 | 2125 | | |
2125 | | - | |
| 2126 | + | |
2126 | 2127 | | |
2127 | 2128 | | |
2128 | 2129 | | |
2129 | 2130 | | |
2130 | 2131 | | |
2131 | 2132 | | |
| 2133 | + | |
2132 | 2134 | | |
2133 | 2135 | | |
| 2136 | + | |
| 2137 | + | |
2134 | 2138 | | |
2135 | 2139 | | |
2136 | 2140 | | |
| |||
0 commit comments