Commit dc4da3d
committed
Fix very minor memory leaks in psql's command.c.
\drds leaked its second pattern argument if any, and \connect leaked
any empty-string or "-" arguments. These are old bugs, but it's hard
to imagine any real use-case where the leaks could amount to anything
meaningful, so not bothering with a back-patch.
Daniel Gustafsson and Tom Lane
Discussion: https://postgr.es/m/3641F19B-336A-431A-86CE-A80562505C5E@yesql.se1 parent efd7f8e commit dc4da3d
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
809 | 812 | | |
810 | 813 | | |
811 | 814 | | |
| |||
2725 | 2728 | | |
2726 | 2729 | | |
2727 | 2730 | | |
| 2731 | + | |
| 2732 | + | |
2728 | 2733 | | |
2729 | 2734 | | |
2730 | 2735 | | |
| |||
2750 | 2755 | | |
2751 | 2756 | | |
2752 | 2757 | | |
| 2758 | + | |
| 2759 | + | |
2753 | 2760 | | |
| 2761 | + | |
2754 | 2762 | | |
2755 | 2763 | | |
2756 | 2764 | | |
| |||
0 commit comments