forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9c6fa34
committed
Fix a couple of memory leaks in src/bin/pg_basebackup/
These have been introduced by7fbe0c8, and could happen forpg_basebackup and pg_receivewal.Per report from Coverity for the ones in walmethods.c, I have spottedthe ones in receivelog.c after more review.Backpatch-through: 101 parent9c83398 commit9c6fa34
3 files changed
+16
-2
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
| 124 | + | |
124 | 125 |
| |
125 | 126 |
| |
126 | 127 |
| |
| |||
132 | 133 |
| |
133 | 134 |
| |
134 | 135 |
| |
| 136 | + | |
135 | 137 |
| |
136 | 138 |
| |
137 | 139 |
| |
| |||
141 | 143 |
| |
142 | 144 |
| |
143 | 145 |
| |
| 146 | + | |
144 | 147 |
| |
145 | 148 |
| |
146 | 149 |
| |
147 | 150 |
| |
148 | 151 |
| |
| 152 | + | |
149 | 153 |
| |
150 | 154 |
| |
151 | 155 |
| |
| |||
158 | 162 |
| |
159 | 163 |
| |
160 | 164 |
| |
| 165 | + | |
161 | 166 |
| |
162 | 167 |
| |
163 | 168 |
| |
| |||
172 | 177 |
| |
173 | 178 |
| |
174 | 179 |
| |
| 180 | + | |
175 | 181 |
| |
176 | 182 |
| |
177 | 183 |
| |
| 184 | + | |
178 | 185 |
| |
179 | 186 |
| |
180 | 187 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| 98 | + | |
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
| |||
255 | 256 |
| |
256 | 257 |
| |
257 | 258 |
| |
| 259 | + | |
258 | 260 |
| |
259 | 261 |
| |
260 | 262 |
| |
261 | 263 |
| |
262 | 264 |
| |
| 265 | + | |
263 | 266 |
| |
264 | 267 |
| |
265 | 268 |
| |
| |||
270 | 273 |
| |
271 | 274 |
| |
272 | 275 |
| |
| 276 | + | |
273 | 277 |
| |
274 | 278 |
| |
275 | 279 |
| |
| |||
626 | 630 |
| |
627 | 631 |
| |
628 | 632 |
| |
| 633 | + | |
629 | 634 |
| |
630 | 635 |
| |
631 | 636 |
| |
632 | 637 |
| |
633 | 638 |
| |
| 639 | + | |
| 640 | + | |
634 | 641 |
| |
635 | 642 |
| |
636 | 643 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
57 |
| - | |
| 56 | + | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
|
0 commit comments
Comments
(0)