- Notifications
You must be signed in to change notification settings - Fork5k
Commite03c952
committed
Fix low-probability memory leak in XMLSERIALIZE(... INDENT).
xmltotext_with_options() did not consider the possibility thatpg_xml_init() could fail --- most likely due to OOM. If thathappened, the already-parsed xmlDoc structure would be leaked.Oversight in commit483bdb2.Bug: #18981Author: Dmitry Kovalenko <d.kovalenko@postgrespro.ru>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/18981-9bc3c80f107ae925@postgresql.orgBackpatch-through: 161 parentaa39b4e commite03c952
1 file changed
+13
-8
lines changedLines changed: 13 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
532 | 532 |
| |
533 | 533 |
| |
534 | 534 |
| |
535 |
| - | |
| 535 | + | |
536 | 536 |
| |
537 | 537 |
| |
538 | 538 |
| |
| |||
685 | 685 |
| |
686 | 686 |
| |
687 | 687 |
| |
688 |
| - | |
| 688 | + | |
689 | 689 |
| |
690 | 690 |
| |
691 | 691 |
| |
| |||
726 | 726 |
| |
727 | 727 |
| |
728 | 728 |
| |
729 |
| - | |
730 |
| - | |
731 |
| - | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
732 | 735 |
| |
733 | 736 |
| |
734 | 737 |
| |
735 | 738 |
| |
| 739 | + | |
| 740 | + | |
736 | 741 |
| |
737 | 742 |
| |
738 | 743 |
| |
| |||
863 | 868 |
| |
864 | 869 |
| |
865 | 870 |
| |
866 |
| - | |
867 |
| - | |
| 871 | + | |
868 | 872 |
| |
869 |
| - | |
| 873 | + | |
| 874 | + | |
870 | 875 |
| |
871 | 876 |
| |
872 | 877 |
| |
|
0 commit comments
Comments
(0)