forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit376c620
committed
Fix portalmem.c to avoid keeping a dangling pointer to a cached plan list
after it's released its reference count for the cached plan. There arecode paths that might try to examine the plan list before noticing thatthe portal is already in aborted state. Report and diagnosis by TatsuoIshii, though this isn't exactly his proposed patch.1 parent04ef404 commit376c620
1 file changed
+12
-9
lines changedLines changed: 12 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
331 | 338 |
| |
332 | 339 |
| |
333 | 340 |
| |
| |||
395 | 402 |
| |
396 | 403 |
| |
397 | 404 |
| |
398 |
| - | |
399 |
| - | |
| 405 | + | |
400 | 406 |
| |
401 | 407 |
| |
402 | 408 |
| |
| |||
529 | 535 |
| |
530 | 536 |
| |
531 | 537 |
| |
532 |
| - | |
533 |
| - | |
| 538 | + | |
534 | 539 |
| |
535 | 540 |
| |
536 | 541 |
| |
| |||
680 | 685 |
| |
681 | 686 |
| |
682 | 687 |
| |
683 |
| - | |
684 |
| - | |
| 688 | + | |
685 | 689 |
| |
686 | 690 |
| |
687 | 691 |
| |
| |||
823 | 827 |
| |
824 | 828 |
| |
825 | 829 |
| |
826 |
| - | |
827 |
| - | |
| 830 | + | |
828 | 831 |
| |
829 | 832 |
| |
830 | 833 |
| |
|
0 commit comments
Comments
(0)