forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit661ab4e
committed
Fix some memory leaks associated with parsing json and manifests
Coverity complained about not freeing some memory associated withincrementally parsing backup manifests. To fix that, provide and use a newshutdown function for the JsonManifestParseIncrementalState object, inline with a suggestion from Tom Lane.While analysing the problem, I noticed a buglet in freeing memory forincremental json lexers. To fix that remove a bogus condition onfreeing the memory allocated for them.1 parentb9ecefe commit661ab4e
File tree
6 files changed
+32
-12
lines changed- src
- backend/backup
- bin
- pg_combinebackup
- pg_verifybackup
- common
- include/common
6 files changed
+32
-12
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
| 244 | + | |
| 245 | + | |
| 246 | + | |
244 | 247 |
| |
245 | 248 |
| |
246 | 249 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
208 | 208 |
| |
209 | 209 |
| |
210 | 210 |
| |
| 211 | + | |
| 212 | + | |
| 213 | + | |
211 | 214 |
| |
212 | 215 |
| |
213 | 216 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
484 | 484 |
| |
485 | 485 |
| |
486 | 486 |
| |
| 487 | + | |
| 488 | + | |
| 489 | + | |
487 | 490 |
| |
488 | 491 |
| |
489 | 492 |
| |
|
Lines changed: 10 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
488 | 488 |
| |
489 | 489 |
| |
490 | 490 |
| |
491 |
| - | |
| 491 | + | |
492 | 492 |
| |
493 |
| - | |
494 |
| - | |
495 |
| - | |
496 |
| - | |
497 |
| - | |
498 |
| - | |
499 |
| - | |
500 |
| - | |
501 |
| - | |
502 |
| - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
503 | 499 |
| |
| 500 | + | |
| 501 | + | |
| 502 | + | |
504 | 503 |
| |
505 | 504 |
| |
506 | 505 |
| |
|
Lines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
123 | 123 |
| |
124 | 124 |
| |
125 | 125 |
| |
126 |
| - | |
127 | 126 |
| |
128 | 127 |
| |
129 | 128 |
| |
| |||
163 | 162 |
| |
164 | 163 |
| |
165 | 164 |
| |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
166 | 177 |
| |
167 | 178 |
| |
168 | 179 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
| 56 | + | |
56 | 57 |
| |
57 | 58 |
|
0 commit comments
Comments
(0)